note 13479 deleted from function.mail by jimw

From: Date: Wed, 31 Oct 2001 23:25:13 +0000
Subject: note 13479 deleted from function.mail by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19919@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; }

« previous php.notes (#19919) next »