本文介绍了有趣的Outlook和MAPI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过outlook发送电子邮件。到目前为止,我已经得到了

使用邮件脚本
我唯一的

问题是当我调用Resolve()和Send()时,我得到确认

对话框。我会一次发送一些电子邮件,并且不会让用户必须为每一个都点击是。

有人知道解决方法吗?我知道smtplib,但我更愿意

简单地做我的工作。谢谢。


Chris

解决方案




唉,我不认为你可以用Outlook的MAPI dll阻止

确认对话框。 。 MS将它们作为防病毒措施添加到服务中,因此没有解决方法。并非所有客户都显示这些令人讨厌的对话框。 Thunderbird肯定不会。

问候,


将McGugan




唉,我不认为你可以做很多事情来阻止使用Outlook的MAPI dll确认对话框。 MS将它们作为防病毒措施添加到服务包中,因此无需解决方法。并非所有客户都显示这些令人讨厌的对话框。 Thunderbird肯定不会。




实际上有一种解决方法。你正在使用简单的MAPI,它有一个很好的简单界面。确认对话框仅适用于简单MAPI。

使用扩展MAPI可以解决问题但更棘手。

请参见此处的初步讨论:



此代码现已以某种方式包含在pywin32中,但我不记得了

其中和晚了。也应该是食谱入门。也许谷歌可以

帮助:-)

David




实际上有一个解决方法。你正在使用简单的MAPI,它有一个





将麦坚官


I''m trying to send an e-mail through outlook. So far I''ve gotten it to
work with the mail script at
http://aspn.activestate.com/ASPN/Coo.../Recipe/149461 My only
problem is that when I call Resolve() and Send(), I get confirmation
dialogs. I will be sending out quite a few e-mails at a time, and would
rather not have the user have to click yes for every single one. Does
anyone know a workaround? I know about smtplib, but I would prefer to
simply make what I have work. Thanks.

Chris

解决方案



Alas, I dont think that there is much you can do to prevent the
confirmation dialogs with Outlook''s MAPI dll. MS added them in a service
pack as an anti-virus measure, so no work-around. Not all clients show
these anoying dialogs though. Thunderbird definately doesn''t.
Regards,

Will McGugan



Alas, I dont think that there is much you can do to prevent the
confirmation dialogs with Outlook''s MAPI dll. MS added them in a service
pack as an anti-virus measure, so no work-around. Not all clients show
these anoying dialogs though. Thunderbird definately doesn''t.



There is actually a workaround. You''re using Simple MAPI which has a
nice easy interface. The confirmation dialogs are only for Simple MAPI.
Using Extended MAPI can work around the problem but its a lot more tricky.
See the initial discussion here:
http://aspn.activestate.com/ASPN/Mai...-win32/2160646

This code has now been included in pywin32 somehow but I can''t remember
where and its late. Should also be a cookbook entry. Maybe Google can
help :-)

David




There is actually a workaround. You''re using Simple MAPI which has a



I stand corrected.

Will McGugan


这篇关于有趣的Outlook和MAPI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 19:24