Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select send account based on recipient

Status
Not open for further replies.

jsolutions

Programmer
Jul 18, 2002
157
US
I have what I feel should be a fairly common problem, but did not find anything in my search. I (like most of you I imagine) have multiple email accounts which I pull into Outlook. Example: Jay@home.com and jay@work.com. When I respond to emails, no problem - Outlook sends from the account the email was received into (ex; it was received into jay@work.com; therefore, it replies using this account). I am using Office 2007 running on Windows 7.

The problem is that when I create a new email, I'm more concerned about the content of the email and sometimes it slips my mind to set the Send from account... until right after I hit send. It's not a huge deal as most of my customers have my home account as well. But for consistency, I'd like the messages to my customers to be all sent from my business account.

Now, before anyone suggests this, i know that I could set programatically set a delay on my emails so that after I hit send I could update the account before it leaves my outbox.

But if I'm going to code anyway, I'd rather have the solution I'm looking for.

My thought is to capture the onSend event for the Mail item. Then, (ideally), look at the contact item for the email recipient in the TO or CC field and update the send account based on a field within the contact record (EX: Create a custom boolean field called "Use Business account" or something like that).

Non-ideally, I would also be OK with using a static list to compare against (EX: if recipient = "John smith" or "Kate Jones", use business account).

Has anyone implemented anything like this? If not, any suggestions on implementing the solution - best practices on accessing values from contact fields based on recipients email address?

Any guidance would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top