victorious Posted December 18, 2007 Share Posted December 18, 2007 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 More sharing options...
play_ Posted December 18, 2007 Share Posted December 18, 2007 Any errors? Link to comment https://forums.phpfreaks.com/topic/82138-help-with-very-simple-form-mailer/#findComment-417396 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.