Can you tell me whats wrong with my code please?

A

Anonymous

Guest
Can you help with this php form mail set up please?
Submiting the form doesnt work.

The script is formail 7.04 and the only line you configure is line 2700 :

$TARGET_EMAIL = array('cosmo@highburyguesthouse\.co\.uk','info@websites-uk\.com');
$TARGET_EMAIL = array('cosmo@highburyguesthouse.co.uk,info@websites-uk.com');
(I commented out 1 line at a time and tried)

Line 1 didn't work and said
"There is an abuse of our server"

Line 2 returns "Error occurred when processing form"

Here is the form itslef:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<FORM name=Highbury Guest House action=http://www.highburyguesthouse.co.uk/formmail.php 
      method=post><INPUT type=hidden 
      value=REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER 
      name=env_report> 
	<INPUT type=hidden value='cosmo@highburyguesthouse.co.uk,info@websites-uk.com' name=recipients> 
	
	<INPUT 
      type=hidden value="email:Your email address,realname:Your name" 
      name=required> <INPUT 
      type=hidden value="Enquiry for the Highbury Guest House" name=subject> 
      <TABLE cellSpacing=5 border=1>
        <TBODY>
        <TR>
          <TD>
            <P>Please enter your name:</P></TD>
          <TD><INPUT name=realname> </TD></TR>
        <TR>
          <TD>
            <P>Please enter your email address:</P></TD>
          <TD><INPUT name=email> </TD></TR>
        <TR>
          <TD>
            <P>Please enter your phone number </P></TD>
          <TD><INPUT name=phone> </TD></TR>
        <TR>
          <TD vAlign=top>
            <P>Please enter your message:</P></TD>
          <TD><TEXTAREA name=mesg rows=10 cols=50></TEXTAREA> </TD></TR>
        <TR>
          <TD><INPUT type=submit value=Submit></TD>
          <TD></TD></TR></TBODY></TABLE></FORM>
</BODY>
</HTML>
 
These are custom errors for formmail, not PHP errors. You should contact formmail about this.

Coditor
 
Back
Top