Product Home Page | Developer Site | Version | |
Set mailmsg = Server.CreateObject("CDONTS.NewMail")
mailmsg.To = "youraccount@yourco.com"
mailmsg.From = "account@someco.com"
mailmsg.Body = "This is a test message." & Chr(13) & Chr(10) _
& "This is the second line."
mailmsg.Host = "mail.yourco.com"
mailmsg.Send
Set mailmsg = Server.CreateObject("CDONTS.NewMail")
Message = "This is a test message." & Chr(13) & Chr(10) _
& "This is the second line."
mailmsg.Send "myaccount@yourco.com", "youraccount@yourco.com", _
"Test Subject", Message, 2, "mail.yourco.com"
Copyright © 2003 Sun Microsystems, Inc. All rights reserved.