()Mail php , Microsoft Hotmail Junk mail Bulk Spam .
Junk !!
Header Inbox Spam , UTF-8 :
PHP:
$sname="=?UTF-8?B?".base64_encode($sname)."?=\n"; //
$sub="=?UTF-8?B?".base64_encode($sub)."?=\n"; //
$smail=""; //
$rmail=""; //
$body=""; //
$headers = "From: $sname <$smail>\r\nReply-To: $smail\r\n";
$headers .= "X-Sender: <$smail>\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "Return-Path: <$rmail>\n";
$headers .= "(anti-spam-(anti-spam-(anti-spam-(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:))))))) text/html; charset=UTF-8\n";
$send = @mail($rmail,$sub,$body,$headers);
if($send){
echo " ";
}else{
echo " ";
}
Smtp Server Mail Transfer Protocol , PHPmailer 3 Mail SMTP POP3 .
SMTP Port 25 26 mail.domain.com smtp.domain.com , PHPmailer 3 class.smtp.php 25 , var $SMTP_PORT .
, , : Spam
: SPF Sender Policy Framework SMTP , , ()Mail , [email protected] !! ..., , .
SPAM , SPF SMTP
.
SPF SPF .
:
PHP:
require_once("class.phpmailer.php"); //
include("class.smtp.php"); // SMTP
$sname="=?UTF-8?B?".base64_encode($sname)."?=\n"; //
$smail=""; //
$rname="=?UTF-8?B?".base64_encode($rname)."?=\n"; //
$rmail=""; //
$sub="=?UTF-8?B?".base64_encode($sub)."?=\n"; //
//
$body=""; //
$mail = new PHPMailer();
$mail->IsSMTP(); // SMTP
$mail->Host = $smtp; // SMTP - mail.yourdomain.com / smtp.yourdomain.com
$mail->SMTPAuth = true;
$mail->Username = "[email protected]"; //
$mail->Password = "password"; //
$mail->AddReplyTo($smail,$sname); //
$mail->AddAddress($rmail, $rname); //
$mail->From = $smail; //
$mail->FromName = $sname; //
$mail->Subject = $sub; //
$mail->MsgHTML($body); // - html
$mail->IsHTML(true); // send as HTML
if(!$mail->Send()) {
echo " ";
}else{
echo " ";
}
SMTP Gmail Google :
PHP:
require_once("class.phpmailer.php"); //
include("class.smtp.php"); // SMTP
$sname="=?UTF-8?B?".base64_encode($sname)."?=\n"; //
$smail=""; //
$rname="=?UTF-8?B?".base64_encode($rname)."?=\n"; //
$rmail=""; //
$sub="=?UTF-8?B?".base64_encode($sub)."?=\n"; //
//
$body=""; //
$mail = new PHPMailer();
$mail->IsSMTP(); // SMTP
$mail->SMTPAuth = true;
//
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->Username = $gmail; //
$mail->Password = $gpass; //
$mail->AddReplyTo($smail,$sname); //
$mail->AddAddress($rmail, $rname); //
$mail->From = $smail; //
$mail->FromName = $sname; //
$mail->Subject = $sub; //
$mail->MsgHTML($body); // - html
$mail->IsHTML(true); // send as HTML
if(!$mail->Send()) {
echo " ";
}else{
echo " ";
}
Gmail , google , SPF Inbox .
, , .
, , .





, , .
Digg
del.icio.us
StumbleUpon
Google
