SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jan 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP Contact Form

    Hi im doing a ASP contact form and for some reason i keep getting this.

    Server object error 'ASP 0177 : 800401f3'

    Server.CreateObject Failed

    /confirmation.asp, line 10

    800401f3

    I think that theres something wrong with my STMP, please any help would be greatful.

    Code ASP:
    <%
    DIM strEmail, strFirstName, strLastName, strSubject, strComments
    strEmail = request.form("Email")
    strFirstName = request.form("FirstName")
    strLastName = request.form("LastName")
    strSubject = request.form("Subject")
    strComments = request.form("Comments")
     
    DIM Mailer,strMsgHeader, qryItem, strMsgInfo
    Set Mailer = Server.CreateObject("smtpout.secureserver.net")      // this line might be wrong.
    Mailer.FromName = "Web Designs"
    Mailer.FromAddress= "carlos@example.net"
    Mailer.ReplyTo = strEmail
    Mailer.RemoteHost = "mail.example.net"
    Mailer.AddRecipient "", ""
    Mailer.Subject = "Online Inquiry"
    strMsgHeader = "This mail message was sent from the www.webdesigns.com Online Form" & vbCrLf & vbCrLf
    Mailer.BodyText = strMsgHeader & vbCrLf & "Email: " & Request.Form("Email") & _
    vbCrLf & "First Name: " & Request.Form("FirstName") & _
    vbCrLf & "Last Name: " & Request.Form("LastName") & _
    vbCrLf & "Subject: " & Request.Form("Subject") & _
    vbCrLf & "Comments: " & Request.Form("Comments")
     
    IF Mailer.SendMail THEN
    Response.Write strFirstName & ",<br>"
    Response.Write "Your message has been successfully sent."
    ELSE
    Response.Write "The following error occurred while sending your message: " & Mailer.Response
    END IF
    %>
    Last edited by Mittineague; Jan 15, 2014 at 17:36. Reason: reformatting bbcode tags


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •