[Migrated content. Thread originally posted on 02 March 2006]
I have a program that sends mail using the msmapi32.ocx, including attachments and it works fine through Outlook Express. I have tested this on various operating systems and it seems to work fine. My problem is with Outlook. The program that I am using does not set the UserName and Password properties before doing the SignOn. When I do attempt to set these properties, Outlook Express seems to ignore them and use the default email account anyway. If I do not set these fields for Outlook, the email goes into the outbox and it tries to send it, but it bounces back. I have noticed that the from field is blank and it does not appear to have the user friendly display name and the email address both in the "to" field. So, I set the "to" fields so that the email address was in the RecipDisplayName and the RecipAddress, but the "from" fields are still blank. If I change my program to use the Outlook profile as the Username, the email never goes, it just sits in the outbox. But, the "from" fields are still blank. If I change it to something else, like the valid username and password of the email account, Outlook gives me a message that the profile is not valid and I have to select the profile. But, the "from" fields are still blank. I see the MsgOrigDisplayName and the MsgOrigAddress, but these seem to be read-only fields.Any ideas for dealing with MSMAPI32.OCX and Outlook?
Also, what is the difference between using CDO and Mapi?
Thanks,
Rebekah
