PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Again about getting sender address when send mail ?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Again about getting sender address when send mail ?
![]() |
Again about getting sender address when send mail ? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 "Mihail Edkov" <mxma@mail.ru> wrote in message news:6cdc6b19.0307080428.7b5abe4c@posting.google.com... > 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. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thank you a lot !
With best regards, Mihail Edkov. "Dmitry Streblechenko" <dmitry@dimastr.com> wrote in message news:<uj2cT3YRDHA.940@TK2MSFTNGP11.phx.gbl>... > 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 > > > "Mihail Edkov" <mxma@mail.ru> wrote in message > news:6cdc6b19.0307080428.7b5abe4c@posting.google.com... > > 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. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 


