使用Outlook发送邮件而不通过运行VB宏提示用户 [英] Sending mail using Outlook without prompting user by running VB Macro
问题描述
Hello Everyone,
我使用excel VB宏发送自动邮件。我附上相同的文件&发送它。我不使用传统的方式 - ActiveX控制/对象。 (我不介意使用它,如果它解决了我的问题)
当前代码:
ActiveWorkbook.SendMail
问题:
效果很好,&发送电子邮件但Microsoft Outlook提示我选择是/否/取消发送邮件。
它提示 - 某些自动代码正在尝试发送电子邮件。它可以是病毒或自动scrit等等。
选择 - 是否取消。
< font style ="background-color:#00ccff">
我想避免这种情况,因为我已安排excell-宏每天运行而没有任何用户互动。邮件提示违反了我们的目的。
系统配置
< p align = left>
- Microsoft Outlook 2003 SP3
- 防病毒软件 - McAfee
请给我一些建议。正如我所提到的,如果它可行,我不介意使用ActiveX对象。
请回复我,如果你找到任何解决方案,你的代码/方法。甚至对于ActiveX对象。
谢谢,
Kedar
您是否尝试过使用...
Code Snippet < /跨度>
Hello Everyone,
I am using excel VB macro to send automated mail. I attach the same file & send it over. I dont use the traditional way - ActiveX contol/objects. (I dont mind using that, if it solves my problem)
Current code:
ActiveWorkbook.SendMail
Problem:
It works well, & send an email but Microsoft Outlook prompts me to select Yes/No/Cancel for sending mail.
It prompts- Some automated code is trying to send an email. It can be virus or automated scrit,etc,etc..
Select - Yes NO Cancel.
I want to avoid this, as i have scheduled the excell- macro to run every day without any user interaction. The mail prompt breaks our purpose.
System Config
-- Microsoft Outlook 2003 SP3
-- Antivirus- McAfee
Please suggest me some way out. As I mentioned, I dont mind using ActiveX object if it is workable.
Please revert back to me, with your code/method if you find any kind of solution. Even for ActiveX Objects.
Thanks,
Kedar
解决方案
Have you tried using...
Code Snippet
这篇关于使用Outlook发送邮件而不通过运行VB宏提示用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆