您好,欢迎访问一九零五行业门户网

在PHP代码中发送邮件的简单示例

from = 'your email address@.com';$mail->fromname = 'html blog';$mail->host = 'host name';$mail->mailer = 'smtp';$mail->subject = 'subject';$mail->ishtml(true);$body = 'hello
how are you ?';$textbody = 'hello, how are you ?';$mail->body = $body;$mail->altbody = $textbody;$mail->addaddress('reciepents full email address');if(!$mail->send()) echo 'there has been a mail error !';
复制代码
发送邮件, php
其它类似信息

推荐信息