本文介绍了我使用phpmailer头功能时发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

0
下来投票

最喜欢

i使用phpmailer,但我有一个addCustomHeader函数的问题它总是给出反弹。这是代码我用过:



  $ headers  = rtrim($ _ POST [ '  customHeader']); 
$ PHPMailer-> addCustomHeader($ headers);





这是我在textarea中使用的标题字段:



发件人:test<  我来自maile> 
MIME-Version:1.0
内容类型:text / html; charset = iso-8859-1
回复: 回复邮件
X-Mailer:PHP phpversion()



请帮帮我。



我的尝试:



发件人:test<  我来自maile> 
MIME-Version:1.0
内容类型:text / html; charset = iso-8859-1
回复: 回复邮件
X-Mailer:PHP phpversion()
解决方案




0down vote
favorite
i use phpmailer , but i have a problem with the addCustomHeader function it always give a bounce .this is the code that i used in :

$headers = rtrim($_POST['customHeader']);
$PHPMailer->addCustomHeader($headers);



and this is the header that i used in the my textarea field :

From: test<"my from maile here">
MIME-Version: 1.0 
Content-type:text/html;charset=iso-8859-1
Reply-To: "the reply mail"
X-Mailer: PHP phpversion()


please help me .

What I have tried:

From: test<"my from maile here">
MIME-Version: 1.0 
Content-type:text/html;charset=iso-8859-1
Reply-To: "the reply mail"
X-Mailer: PHP phpversion()
解决方案




这篇关于我使用phpmailer头功能时发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 14:44