note 42241 added to function.mail

From: Date: Sun, 09 May 2004 10:55:59 +0000
Subject: note 42241 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-69372@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@yoursite.com -f webmaster@yoursite.com" ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42241 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42241&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42241&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69372) next »