|
打开 include/payment/alipay.php 文件
找到
- $this->log_result("verify_success,订单号:".$order_sn); //将验证结果存入文件
复制代码
在此代码下面添加如下代码(部分代码需要修改)
- 01
- $mailbody = '';
- 02
- $mailtitle = "订单号:".$order_sn."支付成功!";
- 03
- $mailbody .= "这里是提示信息";
- 04
- $email='2655101040@qq.com';//改为要接收邮件的邮箱
- 05
- $cfg_sendmail_bysmtp = 'Y';
- 06
- $cfg_smtp_server = 'smtp.qq.com'; //qq邮件[url=http://bbs.piaoxian.net/forum-67-1.html]服务器[/url]地址
- 07
- $cfg_smtp_port = '25'; //端口号,默认为25
- 08
- $cfg_smtp_usermail = '2655101040@qq.com'; //发件邮箱地址
- 09
- $cfg_smtp_user = '跟版网模板'; //名称
- 10
- $cfg_webname = '跟版网模板'; //站名称
- 11
- $cfg_smtp_password = 'password'; //发件邮箱密码
- 12
- $headers = "From: ".$cfg_smtp_usermail."\r\nReply-To: ".$cfg_smtp_usermail;
- 13
- if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server))
- 14
- {
- 15
- $mailtype = 'TXT';
- 16
- require_once(dirname(__FILE__)."/../mail.class.php");
- 17
- $smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);
- 18
- $smtp->debug = false;
- 19
- $smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
- 20
- }
- 21
- else
- 22
- {
- 23
- @mail($email, $mailtitle, $mailbody, $headers);
- 24
- }
复制代码 |
|