Again about getting sender address when send mail ?

M

Mihail Edkov

How can I get sender address in OnSubmit() handler
when Outlook works in POP/SMTP mode with different accounts ?
If Outlook works in corporate mode I get PR_CREATOR_ENTRYID
but in POP/SMTP mode I can get only default accounts :(
I use MAPI (Extendet MAPI) and VC++
Can you take any suggestion ?

Thank you in advance !
With best regards, Mihail Edkov.
 
D

Dmitry Streblechenko

You can't - the sender name is set by the transport provider long after
OnSubmit() is called. In Outlook 2000 or below, you can use
IMAPISession::QueryIdentity(). In Outlook 98/2000 installed in the IMO mode
or Outlook 2002 without Exchange this won't work either. Outlook 2003 fixes
the IMAPISession::QueryIdentity() problem, but then a user can select an
account other than default to send a message.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top