I got the error: "Mail send failure. Error was 503 must have sender and recipient first". when I 'm running this code.
<%
Set Mailer = Server.CreateObject("smtpsvg.mailer")
Mailer.FromName = "Request Info"
Mailer.FromAddress= "aaa@aaa.com"
Mailer.RemoteHost = "mail.aaa.com"
Mailer.AddRecipient "aaa", "aaa@aaa.com"
Mailer.Subject = "This is a test"
Mailer.BodyText = "This is a test"
If Mailer.SendMail then
Response.Write "Mail sent..."
Else
Response.Write "Mail send failure. Error was " & Mailer.Response
End If
Set Mailer = Nothing
%>
<%
Set Mailer = Server.CreateObject("smtpsvg.mailer")
Mailer.FromName = "Request Info"
Mailer.FromAddress= "aaa@aaa.com"
Mailer.RemoteHost = "mail.aaa.com"
Mailer.AddRecipient "aaa", "aaa@aaa.com"
Mailer.Subject = "This is a test"
Mailer.BodyText = "This is a test"
If Mailer.SendMail then
Response.Write "Mail sent..."
Else
Response.Write "Mail send failure. Error was " & Mailer.Response
End If
Set Mailer = Nothing
%>