Formmail.asp help

This is a discussion on "Formmail.asp help" within the Classic ASP section. This forum, and the thread "Formmail.asp help are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 21st, 2006, 02:40
New Member
Join Date: Jan 2006
Age: 26
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Formmail.asp help

First I would like to extend my greatings to everyone on WebForums. This is my first post here.
I am having some issues with setting up formmail.asp and I was hoping someone would be kind enough to help me out.
Here is the problem. When I submit the form, I get the automatic error messages
Form could not be processed due to the following errors:
  • Invalid referer: 'www.dphollas.com'.
  • Missing email recipient.
Now there are some dynamics here, my website is forwarded to that www.dphollas.com/efl directory but my actual address is www.cambridgeeikaiwaschool.com also the recipient is my ISP email account.
here is the code if you need to take a look

formmail.asp (located in "/scripts/")

<%@ 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.cambridgeeikaiwaschool.com", "cambridgeeikaiwaschool.com")
mailComp = "ASPMail"
smtpServer = "coral.mail.plala.or.jp"
fromAddr = "myISPemail@coral.plala.or.jp"
'- End required customization section. -------------------------------------


and the formmail.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body><form action="Scripts/formMail.asp" method="post" enctype="text/plain" dir="ltr" lang="ja">
<input name="_recipients" type="hidden" value="myISPemail@coral.plala.or.jp" />
<input name="_requiredFields" type="hidden"
value="生徒の名前,親の名前,Eメール,電話番号,コメントや質問,男・親,年,コース名,月,日 ,年,時間" />


sorry if the code is messy.
so this is the problem. I have read the setup pages for this and they all say for the recipient field "myemail@mydomain.com " and I just dont get it.
as a foot note, Im still relatively new to this stuff.
Thank you in advance to whomever can lend me a hand.

Regards.
Mark Hollas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 22nd, 2006, 22:48
Reputable Member
Join Date: Nov 2005
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Formmail.asp help

Hi,

I don't know anything about ASP but the refferer needs to be set to the domain on which your site is hosted, if your site is hosted under the domain
www.dphollas.com
then this is what I think you need to have in your referers array i.e.

referers = Array("www.dphollas.com", "dphollas.com")

doesn't matter what address is forwarding to that address
I don't know about the email error though
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
formmailasp, help

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FormMail V3.09cl lmc148 Other Programming Languages 0 Dec 12th, 2007 22:52
Doubt in formmail Mukti Prasad Classic ASP 0 May 3rd, 2007 19:14
Problems with formMail.asp golena Classic ASP 2 Dec 14th, 2005 20:08
Need HELP - with formmail bplatosz Web Page Design 4 Nov 21st, 2005 19:01


All times are GMT. The time now is 12:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42