Trouble with simple sendmail.php code

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 2
Joined: Fri Dec 21, 2012 6:00 pm

Trouble with simple sendmail.php code

Postby cutman21 » Mon Dec 24, 2012 1:53 pm

Please, I need help. I'm getting the thank you page, but not the emails from the form. The sendmail.php below:

///mail sending to customer
$subject1="New Contact enquiry";
<table width='800' border='0' cellspacing='2' cellpadding='0'>
<td align='left'>
<p><strong><u>Enquiry details as below.</u></strong><br /><br />
<strong>Name: </strong>".stripslashes($_REQUEST['name'])."<br /><br />
<strong>Address: </strong>".stripslashes($_REQUEST['address'])."<br /><br />
<strong>Phone: </strong>".stripslashes($_REQUEST['phone'])."<br /><br />
<strong>Email Address: </strong>".stripslashes($_REQUEST['email'])."<br /><br />
<strong>Message: </strong>".nl2br(stripslashes($_REQUEST['comment']))."<br /><br />
//echo $toemail;echo $subject1;echo $mailcontent1;echo $from1;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "From: ".stripslashes($_REQUEST['email'])." <".stripslashes($_REQUEST['email']).">" . "\r\n";

Return to “PHP coding => General”

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests