![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
In the Item.Send event, I am creating and sending a new message that
will be of type RDOMail. What I need to be able to do is set the Account based on the account selected in the Inspector winudow. From the Item.Send Event, I have the original message as type Outlook.Mailitem. How do I determine the account selected? Is there a way I can do it from SafeMailItem, or a way that I can hand the Outlook.MailItem off to RDOMail which has an Account property? (actually I tried to go from Outlook.MailItem to SafeMailItem to RDOMail, but the .Account property is Nothing.) Thanks, Scott |
Ads |
#2
|
|||
|
|||
![]()
Try something like the following
MailItem.Save 'to make sure EntryId is available EntryID = MailItem.EntryID set Session = CreateObject("Redemption.RDOSession") Session.MAPIOBJECT = Application.Session.MAPIOBJECT 'Outlook 2002 and up only set Mail = Session.GetMessageFromID(EntryID) set Account = Mail.Account Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Scott" wrote in message oups.com... In the Item.Send event, I am creating and sending a new message that will be of type RDOMail. What I need to be able to do is set the Account based on the account selected in the Inspector winudow. From the Item.Send Event, I have the original message as type Outlook.Mailitem. How do I determine the account selected? Is there a way I can do it from SafeMailItem, or a way that I can hand the Outlook.MailItem off to RDOMail which has an Account property? (actually I tried to go from Outlook.MailItem to SafeMailItem to RDOMail, but the .Account property is Nothing.) Thanks, Scott |
#3
|
|||
|
|||
![]()
Worked like a charm!
Many many thanks, Scott |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does deleting e-mail account delete the account from my computer? | MPKinney | Outlook - Installation | 2 | February 5th 06 01:26 AM |
Incoming email from second account received into default account | SSG | Outlook - Installation | 4 | January 19th 06 01:08 AM |
Outlook 2003 changes the outgoing account when unable to send by selected account | HeidarV | Outlook - General Queries | 1 | January 16th 06 03:26 PM |
POP3 account errors, although internet access/email account are wo | phil | Outlook Express | 4 | January 15th 06 09:53 AM |
Outlook 2003 changes the outgoing account when unable to send by selected account | HeidarV | Outlook - General Queries | 0 | January 14th 06 09:44 AM |