Ok on register.php, after registration is successfully completed, I send out an email to the user...
language.php:
<?php
// $email_domain = 'mysite.com';
// $site_title = 'title';
$regEmail['from'] = "MIME-Version: 1.0\r\n";
$regEmail['from'] .= "Content-type: text/html; charset=iso-8859-1\r\n";
$regEmail['from'] .= "From: " . $email_domain;
$regEmail['subject'] = 'Activate your account for ' . $site_title;
$regEmail['message'] = '<p>This email is to notify you that your registration was successfully completed.</p>' .
'<p>Please use the link below (copy and paste into your browser) to activate your account.</p>' .
'<p>' . $activation_link . '</p>' .
?>
register.php:
<?php
include('language.php');
//... A whole bunch of code between the include and the foreach() here...
foreach ($_POST as $key=>$value)
{
$_POST[$key] = htmlspecialchars(addslashes(trim($value)));
}
$email = $_POST['email'];
//$activation_link = '...link generated by code that isn't posted...';
mail($email, $regEmail['subject'], $regEmail['message'], $regEmail['from']);
?>
But the mail won't send.. meaning I never get the email...