View Single Post
  #2  
Old June 8th 07, 06:59 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook 2003 Automation - Emails not being sent and going into Inb

Right after creating an instance of the Outlook Application object, call
Namespace.Logon:

set App = CreateObject("Outlook Application")
set NS = App.GetNamespace("MAPI")
NS.Logon

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"JEB" wrote in message
...
All,

I've got an application that automates Outlook 2003. Up until recently,
everything was working fine.

Then, all of the sudden, an issue started appearing. Here's the details.

1) When Outlook was not open (running in the background via the
CreateObject("Outlook Application"), the email would not be sent, and
would
appear in the Inbox Folder with the message "This message has not been
sent"
in a gray bar across the top.

2) With Outlook open (appearing in the task bar), the email would be
sent
as it should. No issues would be encountered.

Any and all help would be appreciated!! I'm about at my wits end.




Ads