A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , ,

Changing the From Email Address using VBA





 
 
Thread Tools Display Modes
  #1  
Old July 8th 06, 09:28 PM posted to microsoft.public.outlook.program_vba
mick.smith1@gmail.com
external usenet poster
 
Posts: 1
Default Changing the From Email Address using VBA

I have 2 email accounts in outlook and depending on the content of
incoming emails I have an Access database which automatically sends a
response. Depending on the email content will determine which email
address I put in the from field.

So far the nearest I have come to achieving this is to add a contact
and then use the mailitem .SentOnBehalfOfName = "Contact"

Is there a way to specify programatically the email address in the from
field or programatically change the default email account.

Thanks for any assistance.

Ads
  #2  
Old July 10th 06, 05:29 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Changing the From Email Address using VBA

Am 8 Jul 2006 13:28:03 -0700 schrieb :

Maybe this is something for you:
http://www.outlookcode.com/codedetail.aspx?id=196

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


I have 2 email accounts in outlook and depending on the content of
incoming emails I have an Access database which automatically sends a
response. Depending on the email content will determine which email
address I put in the from field.

So far the nearest I have come to achieving this is to add a contact
and then use the mailitem .SentOnBehalfOfName = "Contact"

Is there a way to specify programatically the email address in the from
field or programatically change the default email account.

Thanks for any assistance.

  #3  
Old July 10th 06, 07:45 PM posted to microsoft.public.outlook.program_vba
Mick
external usenet poster
 
Posts: 1
Default Changing the From Email Address using VBA

Thanks for the info Michael

Michael Bauer wrote:
Am 8 Jul 2006 13:28:03 -0700 schrieb :

Maybe this is something for you:
http://www.outlookcode.com/codedetail.aspx?id=196

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


I have 2 email accounts in outlook and depending on the content of
incoming emails I have an Access database which automatically sends a
response. Depending on the email content will determine which email
address I put in the from field.

So far the nearest I have come to achieving this is to add a contact
and then use the mailitem .SentOnBehalfOfName = "Contact"

Is there a way to specify programatically the email address in the from
field or programatically change the default email account.

Thanks for any assistance.


 




Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing email address in PAB bteddlie Outlook - Using Contacts 1 July 5th 06 06:41 PM
Changing the font body of an outlook task in vba Gary F Outlook and VBA 2 June 7th 06 08:20 PM
Changing the Reply-to address via VBA ms Outlook and VBA 2 May 8th 06 09:43 PM
Changing the FROM address when sending email programatically mecg96 Outlook and VBA 1 April 20th 06 09:42 PM
Changing of FROM address when sending emails using VBA GeorgeMar Outlook and VBA 2 February 27th 06 07:30 PM


All times are GMT +1. The time now is 07:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
News - Cheap Car Insurance - Loans - Bad Credit Credit Cards - Dan brown