设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHPMAILER实现PHP发邮件功能(2)

发布时间:2021-05-23 04:04 所属栏目:121 来源:网络整理
导读:$mail-isHTML(true);// send as HTML //标题 $mail-Subject = $subject; //HTML内容转换 $mail-msgHTML($content); //Replace the plain text body with one created manually //$mail-AltBody = 'This is a plain-

  $mail->isHTML(true);// send as HTML
//标题
  $mail->Subject = $subject;
//HTML内容转换
  $mail->msgHTML($content);
//Replace the plain text body with one created manually
//$mail->AltBody = 'This is a plain-text message body';
//添加附件
//$mail->addAttachment('images/phpmailer_mini.png');
//send the message,check for errors
  return $mail->send();
}

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读