[HTML]
Require_once ("email2.php");//This is for PHP to send mail method 22. (SMTP transport SMTP Class)
/**
* Server information
*/
$MailServer = ' smtp.163.com '; SMTP Server
$MailPort = ' 25 '; SMTP server port number default 25
$MailId = ' anheng123@163.com '; Server mailbox Account
$MailPw = ' xxxxxxxxxxx '; Server mailbox Password
/**
* Client Information
*/
$Title = ' System developer reports error messages '; Message header
$BT = "SADFSADF";
$_post[' url ']= "Afasdfasfasfsaf";
$_post[' Lianxi ']= "12312412";
$_post[' Xiangxi ']= "said the words head Isa and feel the change of";
$TD = $subject. '
'.' Title: '. $bt. '
'.' URL: '. $_post[' url ']. '
'.' Tel: '. $_post[' Lianxi ']. '
'.' Detailed content: '. $_post[' Xiangxi '];
$Content = $TD; Message content
$email = www.2cto.com Target recipient mailbox
$SMTP = new SMTP ($MailServer, $MailPort, True, $MailId, $MailPw);
$smtp->debug = false;
if ($smtp->sendmail ($email, $MailId, $Title, $Content, "HTML")) {
Echo ' Mail sent successfully '; return results
} else {
Echo ' failed to send mail '; $succeed = 0;
}
?>
Author: vericlongmore
http://www.bkjia.com/PHPjc/478150.html www.bkjia.com true http://www.bkjia.com/PHPjc/478150.html techarticle [HTML]? PHP require_once (email2.php);//This is for php send mail method 22. (SMTP transport SMTP Class)/** * Server information */$MailServer = smtp.163.com; SMTP server $MailPort = 25; SMT ...