note 42241 deleted from function.mail by cmb

From: Date: Sun, 22 Sep 2019 08:10:06 +0000
Subject: note 42241 deleted from function.mail by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212324@lists.php.net to get a copy of this message
Note Submitter: nospam at mingo dot ath dot cx ---- 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"

« previous php.notes (#212324) next »