PC Review


Reply
Thread Tools Rate Thread

Changing From Address before sending mail

 
 
navin
Guest
Posts: n/a
 
      15th Jan 2009
Hi,

I am trying to automate sending emails through excel which works fine
however, one of the requirement is that, before a mail is sent, i need
to change the From address for the mail, since we use different
generic mail ids for sending mails to our customers.

Currently i have to manually enter the From ID before i click on Send.
Below is the code, i am using to create a mail item:

Set olapp = CreateObject("Outlook.Application")
Set olmail = olapp.CreateItem(olMailItem)

olmail.Subject = ""
With olmail
.BodyFormat = olFormatHTML
.HTMLBody =
.To = (E-Mail Removed)
'.Display
.Send
End With

Please help!!!

Thank you in advance.

Navin
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending v cards, changing address settings tim Microsoft Outlook 0 7th Dec 2006 01:07 AM
sending v cards, changing address settings tim Microsoft Outlook 0 7th Dec 2006 12:45 AM
Changing the FROM address when sending email programatically =?Utf-8?B?bWVjZzk2?= Microsoft Outlook VBA Programming 1 20th Apr 2006 09:42 PM
Changing of FROM address when sending emails using VBA =?Utf-8?B?R2VvcmdlTWFy?= Microsoft Outlook VBA Programming 2 27th Feb 2006 07:30 PM
When sending an e-mail in bcc, is it normal to have your e-mail address in the "To" field if there isn't any default address listed Kent Yu Microsoft Outlook Discussion 1 22nd Sep 2003 10:13 PM


Features
 

Advertising
 

Newsgroups
 


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