Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2006

Tip: Looking for answers? Try searching our database.

Working with Mapi Profiles

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rebekah - 28 Sep 2006 15:31 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.