Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 快捷邮件:如何自定义我的邮件正文_Php - Fatal编程技术网

Php 快捷邮件:如何自定义我的邮件正文

Php 快捷邮件:如何自定义我的邮件正文,php,Php,我想在SwiftMail中自定义我的邮件。我试图发送一个链接作为电子邮件正文内容,但它不去 代码 你好 你可以用 ->addPart('<q>un message HTML</q>', 'text/html') ->addPart('un message HTML','text/HTML') 或 ->setBody('un message HTML','text/HTML'); 让你的html文本 ->setBody('<q>un mess

我想在SwiftMail中自定义我的邮件。我试图发送一个链接作为电子邮件正文内容,但它不去

代码

你好

你可以用

->addPart('<q>un message HTML</q>', 'text/html')
->addPart('un message HTML','text/HTML')

->setBody('un message HTML','text/HTML');
让你的html文本

->setBody('<q>un message HTML</q>', 'text/html');