note 13479 added to function.mail.php

From: Date: Mon, 18 Jun 2001 19:09:26 +0000
Subject: note 13479 added to function.mail.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14291@lists.php.net to get a copy of this message
My rewrite of the "mail function rewrite" by npy@nicolas.net (in case you cannot use or don't want to use the PHP mail function): function Send($sFrom, $sTo, $sSubject, $sMessage) { $sSendMail = "/usr/sbin/sendmail"; $pFile = popen($sSendMail." -t -oi", "w"); fwrite($pFile, "To: $sTo\nFrom: $sFrom\nSubject: $sSubject\n\n$sMessage"); pclose($pFile); return $pFile; } http://www.php.net/manual/en/function.mail.php

« previous php.notes (#14291) next »