Home  >  Article  >  Backend Development  >  php使用smtp服务发送邮件 其次

php使用smtp服务发送邮件 其次

WBOY
WBOYOriginal
2016-06-13 12:11:551288browse

php使用smtp服务发送邮件 第二

$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为文本邮件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn