note 105441 deleted from function.mail by danbrown

From: Date: Thu, 18 Aug 2011 16:47:35 +0000
Subject: note 105441 deleted from function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182566@lists.php.net to get a copy of this message
Note Submitter: php dot lpatrick at spamgourmet dot com ---- The above note for Windows on additional_headers' Return-Path is incomplete. The From address is only used if the php.ini doesn't specify a sendmail_from. As admin at chatfamy dot com stated in his comment 30-Jan-2007 08:37, you may need to overwrite that with ini_set. So: if no sendmail_from in php.ini: Return-Path = From, always. If sendmail_from set in php.ini, Return-Path is set to that address, always. If you want to choose the Return-Path from php on Windows, you cannot use Return-Path in the code, use ini_set ("sendmail_from","your@email.com"); before the mail command.

« previous php.notes (#182566) next »