note 46767 deleted from ref.mail by tomsommer

From: Date: Fri, 22 Oct 2004 15:13:49 +0000
Subject: note 46767 deleted from ref.mail by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78948@lists.php.net to get a copy of this message
Note Submitter: moty66 at gmail dot com ---- an html mail function work fine with anispam, it passes yahoo,hotmail and other antispamers. function htmlmail($from,$name,$to,$sub,$msg) { ini_set("SMTP",'mail.yourserver.ext'); ini_set("sendmail_from",$from); $subject=stripslashes($subject); $msg=stripslashes($msg); $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $name <$from>\r\n"; $headers .= "Return-Path: $from\r\n"; $headers .= "Return-Receipt-To: $from\r\n"; $headers .= "X-Mailer: Visionaria Newsletter System\r\n"; $headers .= "Message-ID: ".rand(00000000,999999999)."-vision@visionariamedia.org\r\n"; if($result= @mail($to,$sub,$msg,$headers)) return true; else return false; } Motaz http://www.sallati.com ---- Reason: bad code

« previous php.notes (#78948) next »