note 28804 added to ref.mail

From: Date: Fri, 24 Jan 2003 14:46:04 +0000
Subject: note 28804 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-42689@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/ref.mail.php http://master.php.net/manage/user-notes.php?action=edit+28804 http://master.php.net/manage/user-notes.php?action=delete+28804 http://master.php.net/manage/user-notes.php?action=reject+28804

« previous php.notes (#42689) next »