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
----------------------------------
-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
----------------------------------