PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Again about getting sender address when send mail ?

Reply

Again about getting sender address when send mail ?

 
Thread Tools Rate Thread
Old 08-07-2003, 12:28 PM   #1
Mihail Edkov
Guest
 
Posts: n/a
Default Again about getting sender address when send mail ?


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.
  Reply With Quote
Old 08-07-2003, 08:16 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Again about getting sender address when send mail ?

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.



  Reply With Quote
Old 09-07-2003, 06:32 AM   #3
Mihail Edkov
Guest
 
Posts: n/a
Default Re: Again about getting sender address when send mail ?

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.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off