rezendiz
05-18-2003, 02:24 AM
I'm trying to send mail trough my asp page, it works fine if I send it to my pop account, but if I try to send it somewhere else like hotmail or aol, it gives me the following error.
[11004] Valid name, no data record of requested type
My code looks like this:
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "FROMNAME"
Mailer.FromAddress= "postmaster@ocpagedevelopers.com"
Mailer.RemoteHost = "smtp.ocpagedevelopers.com"
Mailer.AddRecipient "Someone", "alex2_19@hotmail.com"
Mailer.Subject = "This is a sample email sent from ASPMail"
Mailer.BodyText = request.Form("comments")
if Mailer.SendMail then
TheMessage2 = "Your request has been submited"
else
TheMessage2 = "Message was not sent, reason: " & Mailer.Response
end if
It worked fine with my other host, but it won't work here with discountASP.
Can somebody help me?
[11004] Valid name, no data record of requested type
My code looks like this:
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "FROMNAME"
Mailer.FromAddress= "postmaster@ocpagedevelopers.com"
Mailer.RemoteHost = "smtp.ocpagedevelopers.com"
Mailer.AddRecipient "Someone", "alex2_19@hotmail.com"
Mailer.Subject = "This is a sample email sent from ASPMail"
Mailer.BodyText = request.Form("comments")
if Mailer.SendMail then
TheMessage2 = "Your request has been submited"
else
TheMessage2 = "Message was not sent, reason: " & Mailer.Response
end if
It worked fine with my other host, but it won't work here with discountASP.
Can somebody help me?