Outlook 2003 Automation Issue
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.
Re: Outlook 2003 Automation Issue
Can you post some code? Is this an AddIn?
Re: Outlook 2003 Automation Issue
It took lots of surfing to resolve but I've figured it out.
In the code I was using, after creating the namespace object..
"Set OLNS = OLAPP.GetNamespace("MAPI")"
I wasn't calling the ".Logon" method. Once I added the code to call the method, it started working.
Now, I just need to figure out why this became an issue all of the sudden.
Re: Outlook 2003 Automation Issue
When Outlook opens manually it logs on to your default profile. When you are doing it via code you are not and this may have changed due to an update or sp.