chaeska
07-10-2014, 07:46 AM
Hi all!
I have the following problem: I have multiple accounts configured in Outlook and I sometimes accidentally send messages from the wrong one just by virtue of having a folder selected upon writing a new mail.
I'd like to e.g. display a message box before sending mails from the wrong account.
I found a macro for checking the receipient's address and acting accordingly but it doesn't quite do what I want since it's the FROM field that interests me.
The accounts are NOT Exchange accounts, they are IMAP accounts, so I cannot use the getExchangeUser method. I also read somewhere that the SenderEmailAddress property is not set before the mail is actually sent.
The only thing I need to know, basically, is how I return the "from" field value in an unsent message. The rest I can code myself. :)
Cheers!
I have the following problem: I have multiple accounts configured in Outlook and I sometimes accidentally send messages from the wrong one just by virtue of having a folder selected upon writing a new mail.
I'd like to e.g. display a message box before sending mails from the wrong account.
I found a macro for checking the receipient's address and acting accordingly but it doesn't quite do what I want since it's the FROM field that interests me.
The accounts are NOT Exchange accounts, they are IMAP accounts, so I cannot use the getExchangeUser method. I also read somewhere that the SenderEmailAddress property is not set before the mail is actually sent.
The only thing I need to know, basically, is how I return the "from" field value in an unsent message. The rest I can code myself. :)
Cheers!