note 72249 deleted from ref.mail by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 20:11:15 +0000 |
| Subject: | note 72249 deleted from ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155349@lists.php.net to get a copy of this message | ||
Note Submitter: Francesco Piraneo G.
----
Please note that the 'sendmail_from' parameter is used also on php running under linux,
not only under Windows as stated on the documentation.
Webmail services and some spam washer software kill messages without the "From" field
properly set.
Try the following:
ini_set(sendmail_from,$fromaddress); // the INI lines are to force the From Address to be used !
mail($emailaddress, $emailsubject, $msg, $headers);
...as correctly reported by nielsvandenberge at hotmail dot com.
For further info: fpiraneo at gmail dot com