Home > Backend Development > PHP Tutorial > php使用smtp服务发送邮件 第二

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:43:04
Original
844 people have browsed it

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

Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template