Item.Send

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I run a macro that outputs a report which is then e-mailed. In previous
versions of Outlook, this worked fine. In 2003, a message is displayed "A
program is trying to automatically send an e-mail message using Microsoft
Visual Application (VBA) command, Item.Send, from within Microsoft Outlook."

This effectively halts the email from being sent. Any idea how to disable
this interruption?

Many thanks,
Bill
 
See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Depends on the rest of your code and where you initiated it. Note that this
security already exists natively in Outlook since Outlook 2002/XP and all
the previou sversions had a security update for it.

You should be able to program around it securily or use Redemption instead;
http://www.howto-outlook.com/redirect.asp?id=dmitry_redemption

It is best you continue this in outlook.program_vba since that is where the
developers hang out.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
I run a macro that outputs a report which is then e-mailed. In previous
versions of Outlook, this worked fine. In 2003, a message is displayed "A
program is trying to automatically send an e-mail message using Microsoft
Visual Application (VBA) command, Item.Send, from within Microsoft Outlook."

This effectively halts the email from being sent. Any idea how to disable
this interruption?

Many thanks,
Bill
 
Back
Top