PDA

View Full Version : Brainjar Formmail script


mallybills
10-05-2006, 06:20 AM
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="bob@brickkickerslc.com,get2max@msn.com,bjdaisy@xmi ssion.com,brian31@xmission.com,donatgrandma@msn.co m" />-->
<input name="_recipients" type="hidden" value="malinda@homesinutah.net" />
<input name="_replyTo" type="hidden" value="malinda@homesinutah.net" />
<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 (http://www.oakwoodparkhoa.com)", "oakwoodparkhoa.com")
mailComp = "ASPMail"
smtpServer = "localhost"
fromAddr = "noreply@oakwoodparkhoa.com"
'- 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.com (http://www.oakwoodparkhoa.com/)home page, and then look for links to the information you want.
<LI id=instructionsText2>Click the res://C:\WINDOWS\system32\shdoclc.dll/refresh.gif (:location.reload()) Refresh (:location.reload()) button, or try again later.

<LI id=instructionsText3>Click res://C:\WINDOWS\system32\shdoclc.dll/search.gif Search (:doSearch()) 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

joelnet
10-05-2006, 09:03 AM
go to internet options and select the advanced tab. make sure friendly errors are turned off.



Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET

mallybills
10-05-2006, 10:58 AM
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)

mallybills
10-06-2006, 12:39 AM
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

mallybills
10-06-2006, 01:04 AM
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

bruce
10-06-2006, 11:45 AM
You are defininitely using the wrong email component.

Formmail supports multiple email component. You probably set it to one that we do not support

http://www.brainjar.com/asp/formmail/default2.asp

Set the mailComp to either "CDOSys" or "Jmail"

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

mallybills
10-06-2006, 11:53 AM
Spectacular - it worked. Thank you so much.


Malinda