note 28804 deleted from ref.mail by didou
| From: | didou@php.net | Date: | Sun, 07 Dec 2003 02:29:33 +0000 |
| Subject: | note 28804 deleted from ref.mail by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61521@lists.php.net to get a copy of this message | ||
Note Submitter: thomas@thomak.de
----
Hello
I had a problem sending email from UNIX using mail() and having:
ini_set(sendmail_path, "/usr/sbin/sendmail -t -f mymail@mydomain.de");
in my PHP-mail program (not in setup).
Receivers server doesn't forward the message.
Now I use "-f " feature as a 5-th parameter in mail():
mail($recEmail,$subject, $message, $headers,"-f mymail@mydomain.de");
Now it works well.
Found it on http://www.dclp-faq.de/q/q-mail-absender.html
(in German)
works with PHP 4.0.5 upwards (write them).
:-) T.