LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Send mail via VBA through a proxy address?


Hello,

I have a macro to send a bunch of statements to clients though Outlook
Is there a way I can send the mail with a proxy "From" e-mail address?
I would like the mail to come from our group e-mail address instead o
the individual that is sending so and querries will come back to th
group address. Below is an excerp of my code. My firm has an externa
program that will assist with this but I'd rather do it right in VBA i
at all possible to try to avoid making everyone install the program.
Any help is greatly appreciated!!!

Dim out As Object
Dim prevday As Integer
prevday = 0

Set out = CreateObject("Outlook.Application")
With out.CreateItem(olMailItem)
.Recipients.Add recipient1
.Subject = Format(DateAdd("d", Date, prevday), "ddmmmyy") &
Statement"
.Body = "Please find attached your daily statement."
.Attachments.Add path1 & fn1
.Send
End Wit

--
Iwant2lear
-----------------------------------------------------------------------
Iwant2learn's Profile: http://www.excelforum.com/member.php...fo&userid=3346
View this thread: http://www.excelforum.com/showthread.php?threadid=53460

 
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
Would like to send an e-mail to multiple address entered as data. GOBETA Excel Discussion (Misc queries) 1 September 24th 07 03:07 PM
loop trough e-mail address list to send task lists with outlook Paul. Excel Discussion (Misc queries) 2 April 14th 05 11:48 AM
Link to send file to an e-mail address -PJ Excel Discussion (Misc queries) 3 February 2nd 05 02:17 PM
Send current file to an e-mail address Gabor G Excel Programming 0 January 24th 04 08:31 AM
Send current file to an e-mail address Gabor G Excel Programming 1 January 23rd 04 12:49 PM


All times are GMT +1. The time now is 09:11 PM.

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

About Us

"It's about Microsoft Excel"