标签:
$jieguo=$smtp->sendmail($smtpemailto, $smtpusermail, $mailsubject, $mailbody, $mailtype); $smtpserver = "smtp.exmail.qq.com";//SMTP服务器 $smtpserverport =25;//SMTP服务器端口 $smtpusermail = "用户邮箱";//SMTP服务器的用户邮箱 $smtpemailto = "发送给谁";//发送给谁 $smtpuser = "SMTP服务器的用户帐号";//SMTP服务器的用户帐号 $smtppass = "SMTP服务器的用户密码";//SMTP服务器的用户密码 $mailsubject = iconv('UTF-8','GB2312', $row['subject']);//邮件主题 $mailbody = iconv('UTF-8','GB2312', $row['message']);//邮件内容 $mailtype = "TXT";//邮件格式(HTML/TXT),TXT为文本邮件
标签:
原文地址:http://blog.csdn.net/zyu67/article/details/42041389