Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Multiple Receipients in Mail code

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hi guys,
here's the mail code I'm using:

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "Me"
objMail.To = "You@WhereYouAre.com"
objMail.Subject = mailsubject
objMail.MailFormat = cdoMailFormatMime
objMail.BodyFormat = cdoBodyFormatHTML
objMail.Body = mailmessage
objMail.Send
Set objMail = Nothing

How do i get two receipient names in there? Do I just add another address in the quotes, add a comma??!!
Also, are there any known issues I should be aware of if I'm including variable names in the email body?

Thanks,
jack
 
Names are just added with ";" in between.

I.E objMail.To ="Me@WhereIAm.com;You@WhereYouAre.Com" >:):O> wASP >:):O>
 
Comma delimited works, too:

I.E objMail.To ="Me@WhereIAm.com, You@WhereYouAre.Com"

(-:

joanne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top