Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Chili!Mail Send Method Examples

Example 1
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
Example 2
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"


ContentsPreviousNextIndex