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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cdonts mail to two addresses

Status
Not open for further replies.

rubychyld

Programmer
Mar 22, 2001
76
US
This is probably simple, but I've tried every combinatin of concatonation that I can think of and no luck...

How can I fix this CDONTS object syntax to send the request to both email addresses?

Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.To = "rubychyld@hotmail.com,lj2020@tampabay.rr.com"

Thanks for being helpful,
Liz Catch the vigorous horse of your mind!
 
most time you need a semi colon between two e-mail address

objCDO.To = "rubychyld@hotmail.com ; [/red] j2020@tampabay.rr.com" DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Thank you, although using a semi-colon gives me a run-time error (pasted below), it seems right. Could it be the server doesn't allow this? is there an alternative?

Thanks, Liz

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument

/freeinfo_submit.asp, line 12
Catch the vigorous horse of your mind!
 
Must be something else. Here's a Microsoft article on how to use the component, and just as DougP suggested, it is a semicolon you are after:


Post more code if your problem isn't apparent -- along with line numbers.

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top