$subject = 'User confirmation'; // Link what the user will use to activate their account
// message
$message = '<html><body>';
$message .= ''.$subject.'•'.$sitename.'';
$message .= '<table rules="all" class="table table-hover" style="border-color: #666;" cellpadding="10">';
$message .= "<tr style='background: #eee;'><td><strong>Username:</strong> </td><td>" . strip_tags($username) . "</td></tr>";
$message .= "<tr><td><strong>Email:</strong> </td><td>" . strip_tags($emails) . "</td></tr>";
$message .= "<tr><td><strong>signupdate:</strong> </td><td>" . strip_tags($dar) . "</td></tr>";
$message .= "<tr><td><strong>Code:</strong> </td><td>" . strip_tags($code) . "</td></tr>";
$addURLS = $link;
$message .= "<tr><td><strong>for activing:</strong> </td><td><a href='" . htmlentities($addURLS) . "'>Verify</a></td></tr>";
$message .= "</table>";
$message .= "</body></html>";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: deathwish <thygrim@inbox.com>' . "\r\n";
$rt=mail("$username <$email>", $subject, $message, $headers);
// Mail it
if($rt)
{
echo "mail Sent";
}else
{
echo"sorry mail failed";
}
require_once('../class.phpmailer.php');
$mail = new PHPMailer(); // defaults to using php "mail()"
$body = file_get_contents('contents.html');
$body = eregi_replace("[\]",'',$body);
$mail->AddReplyTo("name@yourdomain.com","First Last");
$mail->SetFrom('name@yourdomain.com', 'First Last');
$mail->AddReplyTo("name@yourdomain.com","First Last");
$address = "whoto@otherdomain.com";
$mail->AddAddress($address, "John Doe");
$mail->Subject = "PHPMailer Test Subject via mail(), basic";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->MsgHTML($body);
$mail->AddAttachment("images/phpmailer.gif"); // attachment
$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}
$message = '<html><body>';
$message .="Hello deathwish,<br/>
Someone sent a bug report on $date.";
$message .= '<table rules="all" class="table table-hover" style="border-color: #666;" cellpadding="10">';
$message .= "<tr style='background: #eee;'><td><strong>From:</strong> </td><td>" . strip_tags($email) . "</td></tr>";
$message .= "<tr><td><strong>Bug Report by:</strong> </td><td>" . strip_tags($username) . "</td></tr>";
$message .= "<tr><td><strong>Where it happened:</strong> </td><td>" . strip_tags($cat) . "</td></tr>";
$message .= "<tr><td><strong>Were they logged in?:</strong> </td><td>" . strip_tags($log) . "</td></tr>";
$message .="<tr><td><strong>Report Sent on:</strong></td><td>" . strip_tags($date) . "</td></tr>";
$addURLS = "//www.gamingnations.tk/?action=bank&id=home&name=$names&acct=$acct_number&verify=verify"; //works//
$addURLS = "http://www.gamingnations.tk/?action=bank&id=home&name=$names&acct=$acct_number&verify=verify"; //Does Not works//
$message .= "<tr><td><strong>comments:</strong> </td><td>" . htmlentities($text) . "</td></tr>";
$message .= "</table>";
$message .= "</body></html>";