Jump to content

Help with very simple form mailer!


victorious

Recommended Posts

Hello! This is my first time on this forum, and I appreciate any suggestions:

 

I have a VERY simple form on my website www.besttoolsnow.com/targeted-email-marketing-course-day1 but it is not sending me an email with the opt in information. Here is the PHP:

 

<?

 

$mailto = '[email protected]' ;

 

$subject = "Email Mkt Suggestion" ;

 

$formurl = "http://www.besttoolsnow.com/targeted-email-marketing-course-day1" ;

$errorurl = "" ;

$thankyouurl = "http://www.besttoolsnow.com/thankyou-emailmkt1" ;

 

$uself = 0;

 

$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;

$comments = $_POST['comments'] ;

$http_referrer = getenv( "HTTP_REFERER" );

 

 

if (!isset($_POST['submit'])) {

header( "Location: $formurl" );

exit ;

}

 

if (get_magic_quotes_gpc()) {

$comments = stripslashes( $comments );

}

 

$messageproper =

 

"------------------------------------------------------------\n" .

$comments .

"\n\n------------------------------------------------------------\n" ;

 

mail( $mailto, $subject, $messageproper,"From: \"Best Tools Now Email Mkt\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" );

header( "Location: $thankyouurl" );

exit ;

?>

 

Thank you so much, looking forward to getting it solved!

Link to comment
https://forums.phpfreaks.com/topic/82138-help-with-very-simple-form-mailer/
Share on other sites

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.