note 46767 added to ref.mail
| From: | moty66 at gmail dot com | Date: | Fri, 22 Oct 2004 15:09:43 +0000 |
| Subject: | note 46767 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78947@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46767
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46767&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46767&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46767&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46767&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46767&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46767&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46767&report=yes
Search -- http://master.php.net/manage/user-notes.php