Jump to content

mail() question... about a stop!


zoonose

Recommended Posts

Hi as requested: here is my code... function first

 

<?php
function email ($to, $subject, $body, $html = 0, $debug = 0)
{
global $config;

        $body = str_replace("\r",'', stripslashes ($body));
if ($html) $content_type = 'text/html'; else $content_type = 'text/plain';

$headers  = "From: [email protected]\r\n";
$headers .= "Reply-To: [email protected]\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: $content_type; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: \r\n";
$headers .= "X-Mailer: PHP-mailer\r\n";

if ($debug)
{
	mail ('[email protected]',$subject,$body,$headers);
}
else
{
	mail ($to, $subject, $body, $headers);
}
}
$subject = 'Please verify your email address.';
$body = 'please click this link to verify your email address: http://www.oursomerset.com.au/register/verify/'.$membernumber.$emailverified;

email($to,$subject,$body,0,1);
?>

 

and here is the email body:

please click this link to verify your email address: http://www.oursomerset.com.au/register/verify/290

 

 

.

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.