> > Is there a way to pass to ssmtp the name of the user > > who logged into our imap server? > We do that, with the -f argument. Does ssmtp honor that argument? Yes, it does. Only if invoked by the command line, sadly :( Is there any other variable where the login name is stored in and that can be read from the page that calls the mailfrom() function? Michele Albrigo