note 42241 modified in function.mail by danbrown

From: Date: Mon, 20 Jun 2011 15:13:38 +0000
Subject: note 42241 modified in function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180724@lists.php.net to get a copy of this message
If you're using a linux server using Postfix, and your server hasn't the host name set to a valid name (because it's behind a firewall in an intranet), it's possible that when sending mails using the mail function, some mail servers reject them. This is because they can't check the return path header. If you want to change the Return-Path used by sendmail init the php.ini and edit the sendmail_path variable to this: sendmail_path = "sendmail -t -i -F webmaster@example.com -f webmaster@example.com" --was-- If you're using a linux server using Postfix, and your server hasn't the host name set to a valid name (because it's behind a firewall in an intranet), it's possible that when sending mails using the mail function, some mail servers reject them. This is because they can't check the return path header. If you want to change the Return-Path used by sendmail init the php.ini and edit the sendmail_path variable to this: sendmail_path = "sendmail -t -i -F webmaster@yoursite.com -f webmaster@yoursite.com" http://php.net/manual/en/function.mail.php

« previous php.notes (#180724) next »