Jump to content

Form to Mail PHP error message


rsenal

Recommended Posts

When i submit my contact form on my website i get the following error message ??? ???. 

Warning: mail(): SMTP server response: 554 Error: no valid recipients in e:\domains\i\ianantony.co.uk\user\htdocs\contact.p hp on line 16
Your message was successfully sent!

My script looks like this:

PHP Code:
<?
ini_set("sendmail_from", "[email protected]"); 
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail ($_GET['[email protected]'], $subject,  " 
<head>
<title>Contact letter</title>
</head>
<body>

<br>
  ".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");


I have spent hours and contacted my hosts to no avail.

Please help

Ian
Link to comment
https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/
Share on other sites

When i submit my contact form on my website i get the following error message ??? ???. 
Sorry just modified one of the email addresses


Warning: mail(): SMTP server response: 554 Error: no valid recipients in e:\domains\i\ianantony.co.uk\user\htdocs\contact.p hp on line 16
Your message was successfully sent!

My script looks like this:

PHP Code:
<?
ini_set("sendmail_from", "[email protected]"); 
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail ($_GET['[email protected]'], $subject,  " 
<head>
<title>Contact letter</title>
</head>
<body>

<br>
  ".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");


I have spent hours and contacted my hosts to no avail.

Please help

Ian

[/quote]
[quote author=kobmat link=topic=122325.msg504446#msg504446 date=1168766228]
if you can post the html code for the contact form i think that would help in finding the error if there are any.
[/quote]

&contacts1=Contact <font color="#8EAC00">form</font>
&contacts1_1=Contact <font color="#242A2C">form</font>
&contacts2=your name
&contacts3=e-mail
&contacts4=comments
&contacts5=<p align="right"><u><b>reset</b></u></p>
&contacts6=<p align="right"><u><b>submit</b></u></p>

&contacts7=Mailing <font color="#2D3538">address</font>
&contacts7_1=Mailing <font color="#ffffff">address</font>
&contacts8=Ian Antony Consultancy<br>6 Bloxham Court<br>Bloxham<br>Banbury<br>OX15 4FL<br>Telephone: 01295 722960<br>FAX: 01295 722960
&contacts9=If you would like to contact us regarding prices and availability we recommend using our contact us form.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.