>  기사  >  백엔드 개발  >  php怎么发HTML格式的EDM邮件

php怎么发HTML格式的EDM邮件

WBOY
WBOY원래의
2016-06-06 20:51:481506검색

网上貌似没有相关代码,看到sf发的EDM邮件,不知道是用什么相关原理做的,感觉没有思路

使用php自带的mail,直接变成了html的代码

回复内容:

网上貌似没有相关代码,看到sf发的EDM邮件,不知道是用什么相关原理做的,感觉没有思路

使用php自带的mail,直接变成了html的代码

php手册里有发送HTML邮件的例子:

<?php // multiple recipients
$to  = 'aidan@example.com' . ', '; // note the comma
$to .= 'wez@example.com';

// subject
$subject = 'Birthday Reminders for August';

// message
$message = '
<html>

  <title>Birthday Reminders for August</title>


  <p>Here are the birthdays upcoming in August!</p>
  
Person Day Month Year
Joe 3rd August 1970
Sally 17th August 1973
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.