PDA

View Full Version : Problems with AspMail


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?

davidseye
05-18-2003, 07:23 AM
I don't know for sure about your account, but for my account the Mailer.RemoteHost = "mail.whatever.com" Try that.

bruce
05-19-2003, 07:32 AM
See KB article

http://kb.discountasp.net/article.aspx?id=10106

[b]quote:Originally posted by rezendiz

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?
</blockquote id="quote"></font id="quote">