W
William McIlroy
I have code to send emails progamtically from a module in Excel 2000 using OUtlook 2000, but now I need to have the code select 1 of 5 different email addresses and potentially a different mail server. Any ideas?
---------------------------------
Set NewMail = CreateObject("Outlook.Application")
Set objmail = NewMail.CreateItem(olMailItem)
With objmail
.To = Email
.Subject = "Quotes for " & Name
.Body = emailtext
.Send
End With
Set NewMail = Nothing
Set objmail = Nothing
----------------------------------
Submitted via EggHeadCafe - Software Developer Portal of Choice
Uploading & Downloading Files using ASP.NET
http://www.eggheadcafe.com/tutorial...cd-7cc6fc1980a4/uploading--downloading-f.aspx
---------------------------------
Set NewMail = CreateObject("Outlook.Application")
Set objmail = NewMail.CreateItem(olMailItem)
With objmail
.To = Email
.Subject = "Quotes for " & Name
.Body = emailtext
.Send
End With
Set NewMail = Nothing
Set objmail = Nothing
----------------------------------
Submitted via EggHeadCafe - Software Developer Portal of Choice
Uploading & Downloading Files using ASP.NET
http://www.eggheadcafe.com/tutorial...cd-7cc6fc1980a4/uploading--downloading-f.aspx