rsenal Posted January 14, 2007 Share Posted January 14, 2007 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 16Your 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 helpIan Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/ Share on other sites More sharing options...
rsenal Posted January 14, 2007 Author Share Posted January 14, 2007 When i submit my contact form on my website i get the following error message ??? ???. Sorry just modified one of the email addressesWarning: mail(): SMTP server response: 554 Error: no valid recipients in e:\domains\i\ianantony.co.uk\user\htdocs\contact.p hp on line 16Your 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 helpIan[/quote] Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/#findComment-160396 Share on other sites More sharing options...
kobmat Posted January 14, 2007 Share Posted January 14, 2007 if you can post the html code for the contact form i think that would help in finding the error if there are any. Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/#findComment-160398 Share on other sites More sharing options...
rsenal Posted January 14, 2007 Author Share Posted January 14, 2007 [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. Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/#findComment-160410 Share on other sites More sharing options...
kobmat Posted January 14, 2007 Share Posted January 14, 2007 i dont see any <input> html elements or a form tag Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/#findComment-160412 Share on other sites More sharing options...
rsenal Posted January 14, 2007 Author Share Posted January 14, 2007 [quote author=kobmat link=topic=122325.msg504460#msg504460 date=1168768844]i dont see any <input> html elements or a form tag[/quote]The site is flash based does that make a difference Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/#findComment-160415 Share on other sites More sharing options...
kobmat Posted January 14, 2007 Share Posted January 14, 2007 I suggest you build a html form first to test your scripts that accepts the GET variables from flash. Link to comment https://forums.phpfreaks.com/topic/34107-form-to-mail-php-error-message/#findComment-160421 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.