Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Changing From Address before sending mail

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 =
'.Display
.Send
End With

Please help!!!

Thank you in advance.

Navin
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail attachment to same e-mail address in Outlook Vick Excel Discussion (Misc queries) 4 May 17th 07 07:53 PM
e-mail address via outlook address book Erik Excel Programming 0 October 17th 06 11:21 PM
E-mail to every e-mail address in an Excel column? MrMan&Fam Excel Discussion (Misc queries) 24 July 19th 06 09:35 AM
General mail failure when sending e-mail from Excel Adrienne Excel Discussion (Misc queries) 5 November 4th 05 12:59 PM


All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"