如何在PHP PEAR中回复邮件. [英] How to reply mail in PHP PEAR.

查看:114
本文介绍了如何在PHP PEAR中回复邮件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在做与邮件有关的项目.实际上,我可以向收件人发送电子邮件,但是我在回复电子邮件时遇到问题.
-首先,我认为,要回复电子邮件,只需获取发件人并将其用作收件人,然后让正文附加到新邮件中即可.
-然后我意识到在Gmail中,所有回复邮件都与原始邮件一起嵌入.
-因此,我的第一点方法就是问题.

在这种情况下,请帮助我如何解决?
(很抱歉,如果我的问题不清楚,请告诉我)
谢谢

Hi
I am doing project related to mail. Actually, I could send an e-mail to recipients, but I have a problem with replying an e-mail.
- First, I thought that, to reply an e-mail, just get sender and use it as recipient, and get body to append to new mail.
- Then I realize that in Gmail, all replying mails are embedded with the original mails.
- Therefore, my method in 1st point will be the problem.

In this case, please help me how to solve it?
(I''m sorry if my question is not clear and please let me know)
Thanks

推荐答案

我怀疑您夸大了自己的问题,因为您没有看原始的电子邮件. (很抱歉,如果我错了.)通常,在创建回复电子邮件时,原始电子邮件中没有什么特别的内容.它甚至不是一个单独的电子邮件部分(如在多部分电子邮件中一样),这只是电子邮件文本的一部分,附加在回复文本中.它们之间的所有文本(例如原始消息"或"... [用户名]写道:")没有特殊含义,并以不同的任意形式添加,具体取决于编写电子邮件的代理的代码.因此,我认为您对第一个项目的假设是正确的;这正是您需要做的;您只需要生成我上面提到的一些文本,这就是所有的预期.

据我所记得,GMail在这方面没有什么不同.此外,为什么还要遵循GMail或其他特定样式?只需生成类似于常规做法的文字即可.

—SA
I suspect you exaggerate your problem because you did not look at the raw e-mail message. (Sorry if I''m wrong here.) Normally, there is nothing special in the original e-mail when a reply e-mail of created; it is not even a separate e-mail part (as in multi-part e-mail), this is just a fragment of e-mail text appended to the text of reply. All the text between them (like "original message" or "... [user name] wrote:") has no special meaning and is added in different arbitrary forms, depending on the code of the agent composing e-mail. So, I think your assumptions in your first items are correct; this is exactly what you need to do; you only need to generate some text I mentioned above, as this is all what''s expected.

As far as I remember, GMail is not different in this aspect. Besides, why should you follow the GMail or some other particular style? Just generate the text similar to common practice.

—SA


这篇关于如何在PHP PEAR中回复邮件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆