$mailbody = ''; $mailtitle = "订单号:".$order_sn."支付成功!"; $mailbody .= "这里是提示信息"; $email='344693787@qq.com';//改为要接收邮件的邮箱 $cfg_sendmail_bysmtp = 'Y'; $cfg_smtp_server = 'smtp.qq.com'; //qq邮件服务器地址 $cfg_smtp_port = '25'; //端口号,默认为25 $cfg_smtp_usermail = '344693787@qq.com'; //发件邮箱地址 $cfg_smtp_user = 'www. dedecms51.com'; //名称 $cfg_webname = '织梦无忧'; //站名称 $cfg_smtp_password = 'password'; //发件邮箱密码 $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); }
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 织梦会员使用支付宝支付成功后接收邮件通知教程