Problems with AspMail

Discussion in 'Classic ASP' started by rezendiz, May 18, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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= "[email protected]"
    Mailer.RemoteHost = "smtp.ocpagedevelopers.com"
    Mailer.AddRecipient "Someone", "[email protected]"
    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?
     
  2. I don't know for sure about your account, but for my account the Mailer.RemoteHost = "mail.whatever.com" Try that.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    See KB article

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

    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= "[email protected]"
    Mailer.RemoteHost = "smtp.ocpagedevelopers.com"
    Mailer.AddRecipient "Someone", "[email protected]"
    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">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page