Brainjar Formmail script

Discussion in 'HTML / PHP / JavaScript / CSS' started by mallybills, Oct 5, 2006.

  1. I've added the Brainjar Formmail script to my site. The script seems to work okay in that it catches any form errors (missing fields, bad email addresses) but if there are no form errors (I'm assuming), then I get the error below. I have tried the form with and without a _redirect page but still get the error. Any thoughts on what could be causing this problem? Anyone had a similar problem they have been able to correct?

    Here are the items I've customized on the formmail.asp script and the hidden fields on my form:
    <form action="/scripts/formmail.asp" method="post">
    <input name="_redirect" type="hidden" value="../board.asp" />
    <!--<input name="_recipients" type="hidden" value="[email protected],[email protected],[email protected],[email protected],[email protected]" />-->
    <input name="_recipients" type="hidden" value="[email protected]" />
    <input name="_replyTo" type="hidden" value="[email protected]" />
    <input name="_subject" type="hidden" value="Web Site Board Contact Form" />
    <input name="_fieldOrder" type="hidden" value="name,address,email,phone,member,reply,comments" />
    <input name="_requiredFields" type="hidden" value="name,phone,email,comments" />

    Script
    <%@ LANGUAGE="VBScript" %>
    <% '***************************************************************************
    '* ASP FormMail *
    '* *
    '* Do not remove this notice. *
    '* *
    '* Copyright 1999-2002 by Mike Hall. *
    '* Please see http://www.brainjar.com for documentation and terms of use. *
    '***************************************************************************
    '- Customization of these values is required, see documentation. -----------
    referers = Array("www.oakwoodparkhoa.com", "oakwoodparkhoa.com")
    mailComp = "ASPMail"
    smtpServer = "localhost"
    fromAddr = "[email protected]"
    '- End required customization section. -------------------------------------







    The page cannot be displayed

    There is a problem with the page you are trying to reach and it cannot be displayed.




    Please try the following:

    • <LI id=instructionsText1>Open the www.oakwoodparkhoa.comhome page, and then look for links to the information you want.
      <LI id=instructionsText2>Click the [​IMG] Refresh button, or try again later.

      <LI id=instructionsText3>Click [​IMG] Search to look for information on the Internet.
      <LI id=instructionsText4>You can also see a list of related sites.







    HTTP 500 - Internal server error
    Internet Explorer
    Thank you so much!!!

    Malinda
     
  2. go to internet options and select the advanced tab. make sure friendly errors are turned off.



    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Yeah! Now I at least have something to work with. :)


    Server object error 'ASP 0177 : 800401f3'


    Server.CreateObject Failed


    /scripts/formmail.asp, line 465


    800401f3


    Here is the code starting at line 464...


    if mailComp = "ASPMail" then
    set mailObj = Server.CreateObject("SMTPsvg.Mailer")
    mailObj.RemoteHost = smtpServer
    mailObj.FromAddress = fromAddr
    mailObj.ReplyTo = replyTo
    for each addr in Split(recipients, ",")
    mailObj.AddRecipient "", Trim(addr)
     
  4. Okay - the correct thank you page displayed and all that was good, but I didn't get the email delivered to me. What would likely be the cause of that?


    I swear - we almost got this!


    Malinda
     
  5. Okay - Got it. Changed the Mail Format to JMail and it worked great. Sorry to keep bugging. But I think I'm good now.


    Malinda
     
  6. Bruce

    Bruce DiscountASP.NET Staff

  7. Spectacular - it worked. Thank you so much.


    Malinda
     

Share This Page