4 Replies Latest reply on Jul 17, 2008 2:05 PM by bkrboy@chartermi.net

    ASP Form Mail-Troubles

    bkrboy@chartermi.net Level 1
      am using verio hosting trying to use a form mailer. It is supposed to be an ASP code, but i seem to running into many errors.

      This is my code:

      <%@ LANGUAGE="VBScript" %>
      <%
      Response.Write "Generic ASP Code"
      %>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns=" http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>Untitled Document</title>
      </head>
      <%
      Set Mailer = Server.CreateObject ("CDO.Message")

      Mailer.FromName = "Walking With Him"
      Mailer.FromAddress = "walkingwithhim@walkingwithhim.org"
      Mailer.Subject = "Prayer Story"
      Mailer.BodyText = "A story has been recieved."
      Mailer.RemoteHost = "mail-fwd"
      Mailer.AddRecipient "Trevor Painter", "bkrboy@chartermi.net"

      If Mailer.SendMail Then
      Response.write ("Your message was sent")
      Else
      Response.write ("Your message was not sent. ")
      Response.write ("The error was: " & Mailer.Response)
      End If

      Set Mailer = Nothing
      %>
      <body>
      </body>
      </html>


      This is my error message:

      Generic ASP Code
      Microsoft VBScript runtime error '800a01b6'

      Object doesn't support this property or method: 'FromName'

      /index_files/emailer.asp, line 14


      Any ideas on how to fix this problem??


      Mark this message as the answer.