hi, > I would like to include sendmail_from directive in the apache's virtual > server configuration in order to fix the from field in mail sent by our > sendmail server via php and perharps to trace in system logs.
this directive doesn't isn't meant do be doing that. it's only for error messages ("..contact [EMAIL PROTECTED] ..") and not for mail deliveries. > I think must be a reason for use sendmail_from directive only in Windows > but I can't imagine that. yes, there is. explanation below. > I've solve this problem by recoding the php's mail function and > replacing/adding any From entry which the sendmail_from but I think must be > a reason. Do anybody of you know which is the reason for this limitation? on un*x, PHP passes your mails directly to sendmail/qmail/exim or whatever mail software is running on your machine. if you're using windows, PHP uses it's own SMTP function instead. that's the difference. The "from" in your mail header therefore comes from your mail transfer agent and has little to do with PHP. therefore you have to look for this problem there. Daniel Lorch -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]