Thank You. Your email has been successfully sent to {$to_email}.
OUTPUT; $submit = 'done'; } // if this is a first visit or errors were found show the end-user the form if (($_REQUEST['submit'] == '' || $formResults!='') && empty($_GET['email']) ) { $outputURL = "http://{$_SERVER['HTTP_HOST']}{$url}"; if(strlen($outputURL) > 90) { $piece = $outputURL; $continue = true; while($continue) { $separator = strrpos($piece,"-"); $piece = substr($piece,0,$separator); if($separator < 86) { $continue = false; } if($count++ > 10) $continue = false; } $firstBit = substr($outputURL,0,$separator); $secondBit = substr($outputURL,$separator); $outputURL = $firstBit."
   ".$secondBit; } $subject = ($_POST['subject']) ? $_POST['subject'] : "I saw this on AutoGuide.com"; $output .= << Email this article to a friend
Return to the Article
URL
Your email*
Your name*
Your friend's email*
Subject of email*
Your message
Security question*
Type what you see in the image
cpatch
 
* Required field
OUTPUT; } ?>
Email A Friend
"; } elseif (!validate_mail($your_email)) { $error .= "Your email address is invalid.
"; } if ($your_name == '') { $error .= "Your name was left blank.
"; } if ($to_email == '') { $error .= "Your friend's email address is blank.
"; } elseif (!validate_mail($to_email)) { $error .= "Your friend's email address is invalid.
"; } if ($subject == '') { $error .= "You did not enter a subject.
"; } session_start(); if(strtolower($_SESSION['mpcsvalidation']) != $_POST['verify']) { $error .= "Please check your image verification text.
"; } if ($error == '') { // send email $to = $to_email; $from = $your_email; $msg = "". "To: $to_email\r\n". "From: $your_name\r\n\r\n". "I thought you might be interested in this page from AutoGuide.com .\r\n\r\n". "Link:\r\n". "http://{$_SERVER['HTTP_HOST']}{$url}\r\n\r\n". "Comments:\r\n". $message; $headers = "MIME-Version: 1.0\r\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\r\n"; $headers .= "From: $from\r\n"; mail($to,$subject,$msg,$headers); header("Location: ".$_SERVER['PHP_SELF']."?email=$to_email&url=".urlencode($url)); exit; } $error = "
The following errors were found:
{$error}
"; return $error; } ?> AutoGuide – Sharing Our AutoGuide.Com Content Via Email $u){ $u=substr(preg_replace('/[^\w\-]+/','_',$u),0,40); $n=$k+1; $infoUrlsStr.=" GA_googleAddAttr(\"folder{$n}\",\"{$u}\");\n"; } $infoPublishedFileName=substr(preg_replace('/[^\w\-]+/','_',$dfp_filename),0,40); $headDfpScripts.=<< GA_googleAddAttr("sitename", "autoguide_com"); {$infoUrlsStr} GA_googleAddAttr("filename", "{$infoPublishedFileName}"); \n {$headDfpSlotsScripts}\n DFP; ob_start(); ?> ',$wrapper); $wrapperHeader=trim($w[0]); $wrapperFooter=trim($w[1]); } ?>