$mailbody = ''; $mailtitle = "訂單號:".$order_sn."支付成功!"; $mailbody .= "這里是提示信息"; $email='[email protected]';//改為要接收郵件的郵箱 $cfg_sendmail_bysmtp = 'Y'; $cfg_smtp_server = 'smtp.qq.com'; //qq郵件服務(wù)器地址 $cfg_smtp_port = '25'; //端口號,默認為25 $cfg_smtp_usermail = '[email protected]'; //發(fā)件郵箱地址 $cfg_smtp_user = 'www. dedecms51.com'; //名稱 $cfg_webname = '織夢無憂'; //站名稱 $cfg_smtp_password = 'password'; //發(fā)件郵箱密碼 $headers = "From: ".$cfg_smtp_usermail."\r\nReply-To: ".$cfg_smtp_usermail; if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server)) { $mailtype = 'TXT'; require_once(dirname(__FILE__)."/../mail.class.php"); $smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password); $smtp->debug = false; $smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype); } else { @mail($email, $mailtitle, $mailbody, $headers); }
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢會員使用支付寶支付成功后接收郵件通知教程