如何使用.net1.1从pop3服务器恢复退回的邮件标题 [英] how to rerad bounced mail headers from pop3 server using .net1.1

查看:101
本文介绍了如何使用.net1.1从pop3服务器恢复退回的邮件标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用pop3服务器(.net 2003)检索退回邮件的自定义标头值
带有自定义消息的邮件,如下所示
MailMessage Ml = new MailMessage();
Ml.Headers.Add("abcde","lmnop");

Hi, how to retrieve the custom header value of bounced mail using pop3 server (.net 2003)
mail sent with custom message like below
MailMessage Ml = new MailMessage();
Ml.Headers.Add("abcde","lmnop");
how to retrieve the added value (how to read all the header value of bounced mail?)

推荐答案

发送邮件是一个不同的模块(SMTP).
读取是POP3中的另一个模块,因此没有类似get("key")
的内容. 在通过程序的退回邮件中,im无法读取自定义标头,但可以在Outlook选项中查看值.无论如何要读取我可以在Outlook中查看的所有内容?
sending mail is a different module (SMTP).
reading is other module in POP3 and hence there is nothing like get("key")
also in the bounced mail through program im unable to read the custom header but could view the values in outlook options. anyway to read all the contents that i could view in the outlook?


selva_82写道:
selva_82 wrote:

如何检索附加值(如何读取退回邮件的所有标头值?)

how to retrieve the added value (how to read all the header value of bounced mail?)


我不确定我是否理解正确,但是如果我理解正确,则可以这样做:


I''m not sure if I have understood this correctly, but if I have, you could do this:

Ml.Headers.Get("abcde"); // output: lmnop


这将获取名为"abcde"的标头的值,因此将输出"lmnop".

这是您要找的吗?


This would get the value of the header named "abcde", therefore it outputs "lmnop".

Is this what you''re looking for?


这篇关于如何使用.net1.1从pop3服务器恢复退回的邮件标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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