note 43427 deleted from function.mail by aidan

From: Date: Sun, 08 Aug 2004 15:35:06 +0000
Subject: note 43427 deleted from function.mail by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74232@lists.php.net to get a copy of this message
Note Submitter: andy@NOSPAMthebmwz3.co.uk ---- An interesting problem highlighted this, when sending mail its a good idea if available to use -fwebmaster@yourdomain.com as a parameter to sendmail. I recently found a few anti-spam mail gateways were rejecting our mails, because the from address appeared 'spoofed', yet using the -f option to sendmail solved this problem. So we now use: mail("dest@ourdomain.com","Web site enquiry","$emailtext","From: webmaster@ourdomain.com\r\nX-Mailer: server\r\nReply-To: webmaster@ourdomain.com\r\n","-fwebmaster@ourdomain.com");

« previous php.notes (#74232) next »