I have two questions regarding programming with MAPI and Outlook. First of
all - when using MAPI, how does it determine which outlook profile to use?
And, can you use MAPI controls when you do not have Exchange Server running?
I have a program that is putting out the email message through MAPI - but it
is not putting in a "from" name/address. It works fine with Outlook Express.
Dmitry Streblechenko - 28 Sep 2006 18:13 GMT
Do you mean MAPI controls (which use Simple MAPI)? No. Extended MAPI
(C++/Delphi only) - yes.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
>I have two questions regarding programming with MAPI and Outlook. First of
> all - when using MAPI, how does it determine which outlook profile to use?
[quoted text clipped - 5 lines]
> is not putting in a "from" name/address. It works fine with Outlook
> Express.
Eric Legault [MVP - Outlook] - 28 Sep 2006 18:18 GMT
You can either rely on the user's default (automatic profile or select a
profile) or logon yourself:
Specifying a Profile During Simple MAPI Logon:
http://msdn.microsoft.com/library/en-us/mapi/html/c61f6b4c-e1ea-484e-bc64-11b905
92ce1c.asp?frame=true
You don't need Exchange to use Simple MAPI. I can't explain why the From
header is blank though.

Signature
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
> I have two questions regarding programming with MAPI and Outlook. First of
> all - when using MAPI, how does it determine which outlook profile to use?
> And, can you use MAPI controls when you do not have Exchange Server running?
>
> I have a program that is putting out the email message through MAPI - but it
> is not putting in a "from" name/address. It works fine with Outlook Express.
Rebekah - 29 Sep 2006 21:27 GMT
I am wondering if there is a security option that might be affecting this
since I am accessing Outlook from another application. Is there a security
setting or option that might be affecting this that I can change?
> I have two questions regarding programming with MAPI and Outlook. First of
> all - when using MAPI, how does it determine which outlook profile to use?
> And, can you use MAPI controls when you do not have Exchange Server running?
>
> I have a program that is putting out the email message through MAPI - but it
> is not putting in a "from" name/address. It works fine with Outlook Express.
Eric Legault [MVP - Outlook] - 29 Sep 2006 22:26 GMT
Are you using the Microsoft MAPI Controls (MAPISession and MAPIMessages)? If
so, why aren't you using the Outlook Object Model directly (unless you are
building a MAPI client independant application)?
Regardless, please show your code so we can better assist.

Signature
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/
> I am wondering if there is a security option that might be affecting this
> since I am accessing Outlook from another application. Is there a security
[quoted text clipped - 6 lines]
> > I have a program that is putting out the email message through MAPI - but it
> > is not putting in a "from" name/address. It works fine with Outlook Express.