I used these codes to send email.
mySmartMail =CREATEOBJECT("AspSmartMail.SmartMail")
*SMTP Mail Server
mySmartMail.Server = "Localhost"
*From
mySmartMail.SenderName = cName
mySmartMail.SenderAddress = "lzhang@xyz.com"
*To
mySmartMail.Recipients.Add(cRecipients, cName)
mySmartMail.CCs.Add(cRecipients, "")
......
|
But now I got an error:
"Can't connect to SMTP server."