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 address when sending email programatically





 
 
Thread Tools Display Modes
  #1  
Old April 20th 06, 09:03 PM posted to microsoft.public.outlook.program_vba
mecg96
external usenet poster
 
Posts: 4
Default Changing the FROM address when sending email programatically

Hi!

I have a macro that sends out emails, but I want to use a generic mailbox
address that I have.
When I manually create an email I can enter the address in the FROM field,
but I don't know how to do this in code. I guess there is something similar
to the recipients class

Thanks for your help!
Ads
  #2  
Old April 20th 06, 10:42 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,592
Default Changing the FROM address when sending email programatically

Set the MailItem.SentOnBehalfOfName property (Exchange only).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"mecg96" wrote in message
...
Hi!

I have a macro that sends out emails, but I want to use a generic mailbox
address that I have.
When I manually create an email I can enter the address in the FROM field,
but I don't know how to do this in code. I guess there is something
similar
to the recipients class

Thanks for your help!



 




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 the order of the address lists in a multiple user environ Suresh Patel Outlook - Installation 3 April 5th 06 05:19 PM
outlook is sending email to other users in address book Noor Outlook - Using Contacts 1 April 4th 06 11:06 PM
Changing of FROM address when sending emails using VBA GeorgeMar Outlook and VBA 2 February 27th 06 08:30 PM
changing the "from" email address brent Outlook - Using Contacts 1 January 29th 06 10:56 PM
Set which local email account can send mail to contacts in address book. (associating an email address with a contact) Scott Streit Outlook - General Queries 3 January 27th 06 03:57 PM


All times are GMT +1. The time now is 01:42 AM.


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.
Debt Help - Free Advertising - Mortgage Loans - Web Advertising - Mortgages