使用VBA从Outlook电子邮件正文中提取电子邮件地址?

时间:2011-05-13 02:28:31

标签: vba outlook

我在我公司的交换服务器中使用带有登录ID的outlook 2000。

我在个人文件夹下有一个名为“undelivered_email”的文件夹。我设置了一条规则来移动所有电子邮件的副本,其标题类似于“未送达的电子邮件”。

现在,我如何遍历此“undelivered_email”文件夹中的所有电子邮件,并访问每封电子邮件的正文,然后获取 内容正文中的任何电子邮件地址 >

例如,这是未送达电子邮件通知内容的副本:

####################################################################
# THIS IS A WARNING ONLY.  YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
####################################################################

Your message could not be delivered for 1 days, 20 hours, 0 minutes.
It will be retried until it is 3 days, 0 hours, 0 minutes old.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

< abc@xyz.com >: this domain could be reached at this time

好吧,我真的不需要使用vba,任何方法都可以。应该是最简单的一个。 我有很多这种无法发送的电子邮件通知要处理,我需要提取内部的电子邮件。如果我们可以将电子邮件列表导出到文件中会很好。

1 个答案:

答案 0 :(得分:2)

我用Google搜索&#34; outlook vba退回电子邮件&#34;并获得了一些有希望的点击率: