", $message); // SET HEADERS $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if($bcc) { $headers .= "Bcc: $recipient\n"; $recipient = "noreply@domain.com"; }*/ $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_email='{$recipient_email}' LIMIT 1")); if($chkemail['user_pdp_evc']==null||$chkemail['user_pdp_evc']=="") { $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_newemail='{$recipient_email}' LIMIT 1")); //$chkemail=0; } $emailaddressok=$chkemail['user_pdp_evc']; //mail($recipient, $subject, $message, $headers); require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //require_once('mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient); $mail->Subject = $subject; $mail->Subject = $subject; $message4=' Upcoming Changes to BateWorld\'s Data Policies
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­  
Logo
'.$message.'

©2024 BW Entertainment, LLC  |  8485 E. McDonald Drive, Suite 241, Scottsdale, AZ



You received this email because you are registered on bateworld.com.

You can update your notificaiton preferences at any time.


'; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5){ $database->database_query('INSERT INTO emailstosend SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); $database->database_query('INSERT INTO emailsaved SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); } //$mail->Send(); //$database->database_query("INSERT INTO bateworldcom_zips.emailtracker set email='".$recipient."'"); //mail("leprakhauns@gmail.com", "Mail sent", $recipient); //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { //echo $e->getMessage(); //Boring error messages from anything else! mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } function send_systememail_nocheck($systememail, $recipient_email, $replace = Array(), $bcc = FALSE, $test=0) { //return; global $setting, $database; if(!class_exists("SE_Language")) { include $_SERVER["DOCUMENT_ROOT"]."/include/class_language.php"; } $pos = strpos($systememail, "comment"); $mailgun=0; // Note our use of ===. Simply == would not work as expected // because the position of 'a' was the 0th (first) character. /*if ($systememail=="profilecomment"){ $mailgun=1;}*/ if ($pos === false) { }else{ $mailgun=1;} // RETRIEVE EMAIL INFO $email = $database->database_fetch_assoc($database->database_query("SELECT * FROM se_systememails WHERE systememail_name='{$systememail}' LIMIT 1")); /*$chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_email='{$recipient_email}' LIMIT 1")); if($chkemail['user_pdp_evc']==null||$chkemail['user_pdp_evc']=="") { $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_newemail='{$recipient_email}' LIMIT 1")); //$chkemail=0; }*/ $emailaddressok=$chkemail['user_pdp_evc']; $pdpuid=$chkemail['user_id']; SE_Language::_preload_multi($email['systememail_subject'], $email['systememail_body']); SE_Language::load(); // GET/DECODE SUBJECT AND MESSAGE $subject = htmlspecialchars_decode(SE_Language::_get($email['systememail_subject']), ENT_QUOTES); $message = htmlspecialchars_decode(SE_Language::_get($email['systememail_body']), ENT_QUOTES); if(is_array($replace)&&!array_is_list($replace)){ list( $message, $subject ) = str_replace( array_keys($replace), array_values($replace), array( $message, $subject ) ); }else{ if($test!=1){ // REPLACE VARIABLES IN SUBJECT AND MESSAGE if(is_array($replace)){ $subject = vsprintf($subject, $replace); $message = vsprintf($message, $replace); }else{ $subject = sprintf($subject, $replace); $message = sprintf($message, $replace); } }} //if(SE_DEBUG1){echo vsprintf($message, $replace); exit;} // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $sender = "bateworld.com "; $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if( $bcc ) { $headers .= "Bcc: $recipient_email\n"; $recipient_email = "noreply@domain.com"; }*/ /*$message.="

BateWorld sent this e-mail to you at ".$recipient_email." because your Notification Preferences indicate that you want to receive this information.

If you do not wish to receive further communications like this you can change your Notification Preferences by clicking here. Please note that it may take up to 10 days to process your request and you must be logged into your account. Alternatively, you can disable your BateWorld account by clicking here.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee or you believe you have received this email by mistake, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Visit our Privacy Policy and Terms of Service if you have any questions.";*/ // SEND MAIL //$success=mail($recipient_email, $subject, $message, $headers); // log this /*$fh=fopen( '/tmp/mail.log', 'a'); if ( $fh ) { if ( $success ) { fwrite( $fh, "mail sent: recip: $recipient_email, subject: $subject\n"); } else { fwrite( $fh, "mail FAIL: recip: $recipient_email, subject: $subject\n"); } fclose( $fh ); }*/ // and we're done ? //return true; require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient_email); //$mail->AddBCC("leprakhauns@gmail.com"); $mail->Subject = $subject; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $message=' Upcoming Changes to BateWorld\'s Data Policies
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­  
Logo
'.$message.'

©2024 BW Entertainment, LLC  |  8485 E. McDonald Drive, Suite 241, Scottsdale, AZ



You received this email because you are registered on bateworld.com.

You can update your notificaiton preferences at any time.


'; $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment //uncommented on 4/17/2024 //if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5 || $systememail=="lostpassword" || $systememail=="secondaryconfirmation"|| $systememail=="confirmationandpassword"||$test==1) { //mail("porembaphilip@gmail.com", $subject, $message); $database->database_query('INSERT INTO emailstosend SET email="'.$database->database_real_escape_string($recipient_email).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); //$mail->Send(); //$database->database_query("INSERT INTO bateworldcom_zips.emailtracker set email='".$recipient_email."'"); //mail("leprakhauns@gmail.com", "Mail sent", $recipient_email); // mail("porembaphilip@gmail.com", $subject, $message); } //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } function send_admin($recipient, $subject, $message, $search="", $replace="", $bcc = FALSE) { global $database; // DECODE SUBJECT AND EMAIL FOR SENDING $subject = htmlspecialchars_decode($subject, ENT_QUOTES); $message = htmlspecialchars_decode($message, ENT_QUOTES); // REPLACE VARIABLES IN SUBJECT AND MESSAGE $subject = str_replace($search, $replace, $subject); $message = str_replace($search, $replace, $message); // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if($bcc) { $headers .= "Bcc: $recipient\n"; $recipient = "noreply@domain.com"; }*/ $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_email='{$recipient_email}' LIMIT 1")); if($chkemail['user_pdp_evc']==null||$chkemail['user_pdp_evc']=="") { $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_newemail='{$recipient_email}' LIMIT 1")); //$chkemail=0; } $emailaddressok=$chkemail['user_pdp_evc']; //mail($recipient, $subject, $message, $headers); require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //require_once('mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient); $mail->Subject = $subject; $mail->Subject = $subject; $message=' Upcoming Changes to BateWorld\'s Data Policies
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­  
Logo
'.$message.'

©2024 BW Entertainment, LLC  |  8485 E. McDonald Drive, Suite 241, Scottsdale, AZ



You received this email because you are registered on bateworld.com.

You can update your notificaiton preferences at any time.


'; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5){ $database->database_query('INSERT INTO emailstosend SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); $database->database_query('INSERT INTO emailsaved SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); } //$mail->Send(); //$database->database_query("INSERT INTO bateworldcom_zips.emailtracker set email='".$recipient."'"); //mail("leprakhauns@gmail.com", "Mail sent", $recipient); //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { //echo $e->getMessage(); //Boring error messages from anything else! mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } function send_generic($recipient, $sender, $subject, $message, $search, $replace, $bcc = FALSE) { global $database; // DECODE SUBJECT AND EMAIL FOR SENDING $subject = htmlspecialchars_decode($subject, ENT_QUOTES); $message = htmlspecialchars_decode($message, ENT_QUOTES); // REPLACE VARIABLES IN SUBJECT AND MESSAGE $subject = str_replace($search, $replace, $subject); $message = str_replace($search, $replace, $message); // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if($bcc) { $headers .= "Bcc: $recipient\n"; $recipient = "noreply@domain.com"; }*/ $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_email='{$recipient_email}' LIMIT 1")); if($chkemail['user_pdp_evc']==null||$chkemail['user_pdp_evc']=="") { $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_newemail='{$recipient_email}' LIMIT 1")); //$chkemail=0; } $emailaddressok=$chkemail['user_pdp_evc']; //mail($recipient, $subject, $message, $headers); require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //require_once('mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient); $mail->Subject = $subject; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $message=' Upcoming Changes to BateWorld\'s Data Policies
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­  
Logo
'.$message.'

©2024 BW Entertainment, LLC  |  8485 E. McDonald Drive, Suite 241, Scottsdale, AZ



You received this email because you are registered on bateworld.com.

You can update your notificaiton preferences at any time.


'; $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5){ $database->database_query('INSERT INTO emailstosend SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); $database->database_query('INSERT INTO emailsaved SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); } //$mail->Send(); //$database->database_query("INSERT INTO bateworldcom_zips.emailtracker set email='".$recipient."'"); //mail("leprakhauns@gmail.com", "Mail sent", $recipient); //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { //echo $e->getMessage(); //Boring error messages from anything else! mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } // END send_generic() FUNCTION // THIS FUNCTION SENDS A CUSTOM EMAIL // INPUT: $systememail REPRESENTING THE SYSTEM EMAIL TO SEND // $recipient_email REPRESENTING THE EMAIL(S) OF THE RECIPIENT // $replace (OPTIONAL) REPRESENTING THE VARIABLES TO BE INSERTED // $bcc (OPTIONAL) REPRESENTING WHETHER TO BCC ALL RECIPIENTS // OUTPUT: if (!function_exists('array_is_list')) { function array_is_list(array $arr) { if ($arr === []) { return true; } return array_keys($arr) === range(0, count($arr) - 1); } } function send_systememail($systememail, $recipient_email, $replace = Array(), $bcc = FALSE, $test=0) { //return; global $setting, $database; if(!class_exists("SE_Language")) { include $_SERVER["DOCUMENT_ROOT"]."/include/class_language.php"; } $pos = strpos($systememail, "comment"); $mailgun=0; // Note our use of ===. Simply == would not work as expected // because the position of 'a' was the 0th (first) character. /*if ($systememail=="profilecomment"){ $mailgun=1;}*/ if ($pos === false) { }else{ $mailgun=1;} // RETRIEVE EMAIL INFO $email = $database->database_fetch_assoc($database->database_query("SELECT * FROM se_systememails WHERE systememail_name='{$systememail}' LIMIT 1")); $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_email='{$recipient_email}' LIMIT 1")); if($chkemail['user_pdp_evc']==null||$chkemail['user_pdp_evc']=="") { $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_newemail='{$recipient_email}' LIMIT 1")); //$chkemail=0; } $emailaddressok=$chkemail['user_pdp_evc']; $pdpuid=$chkemail['user_id']; \SE_Language::_preload_multi($email['systememail_subject'], $email['systememail_body']); \SE_Language::load(); // GET/DECODE SUBJECT AND MESSAGE $subject = htmlspecialchars_decode(\SE_Language::_get($email['systememail_subject']), ENT_QUOTES); $message = htmlspecialchars_decode(\SE_Language::_get($email['systememail_body']), ENT_QUOTES); if(is_array($replace)&&!array_is_list($replace)){ list( $message, $subject ) = str_replace( array_keys($replace), array_values($replace), array( $message, $subject ) ); }else{ if($test!=1){ // REPLACE VARIABLES IN SUBJECT AND MESSAGE if(is_array($replace)){ $subject = vsprintf($subject, $replace); $message = vsprintf($message, $replace); }else{ $subject = sprintf($subject, $replace); $message = sprintf($message, $replace); } }} //if(SE_DEBUG1){echo vsprintf($message, $replace); exit;} // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $sender = "{$setting['setting_email_fromname']} <{$setting['setting_email_fromemail']}>"; $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if( $bcc ) { $headers .= "Bcc: $recipient_email\n"; $recipient_email = "noreply@domain.com"; }*/ /*$message.="

BateWorld sent this e-mail to you at ".$recipient_email." because your Notification Preferences indicate that you want to receive this information.

If you do not wish to receive further communications like this you can change your Notification Preferences by clicking here. Please note that it may take up to 10 days to process your request and you must be logged into your account. Alternatively, you can disable your BateWorld account by clicking here.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee or you believe you have received this email by mistake, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Visit our Privacy Policy and Terms of Service if you have any questions.";*/ // SEND MAIL //$success=mail($recipient_email, $subject, $message, $headers); // log this /*$fh=fopen( '/tmp/mail.log', 'a'); if ( $fh ) { if ( $success ) { fwrite( $fh, "mail sent: recip: $recipient_email, subject: $subject\n"); } else { fwrite( $fh, "mail FAIL: recip: $recipient_email, subject: $subject\n"); } fclose( $fh ); }*/ // and we're done ? //return true; require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient_email); //$mail->AddBCC("leprakhauns@gmail.com"); $mail->Subject = $subject; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $message=' Upcoming Changes to BateWorld\'s Data Policies
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­  
Logo
'.$message.'

©2024 BW Entertainment, LLC  |  8485 E. McDonald Drive, Suite 241, Scottsdale, AZ



You received this email because you are registered on bateworld.com.

You can update your notificaiton preferences at any time.


'; $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment //uncommented on 4/17/2024 if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5 || $systememail=="lostpassword" || $systememail=="secondaryconfirmation"|| $systememail=="confirmationandpassword"||$test==1) { //mail("porembaphilip@gmail.com", $subject, $message); $database->database_query('INSERT INTO emailstosend SET email="'.$database->database_real_escape_string($recipient_email).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); //$mail->Send(); //$database->database_query("INSERT INTO bateworldcom_zips.emailtracker set email='".$recipient_email."'"); //mail("leprakhauns@gmail.com", "Mail sent", $recipient_email); // mail("porembaphilip@gmail.com", $subject, $message); } //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } function send_systememail_old($systememail, $recipient_email, $replace = Array(), $bcc = FALSE) { global $setting, $database; // RETRIEVE EMAIL INFO $email = $database->database_fetch_assoc($database->database_query("SELECT * FROM se_systememails WHERE systememail_name='{$systememail}' LIMIT 1")); $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_email='{$recipient_email}' LIMIT 1")); if($chkemail['user_pdp_evc']==null||$chkemail['user_pdp_evc']=="") { $chkemail = $database->database_fetch_assoc($database->database_query("SELECT user_pdp_evc, user_id FROM se_users WHERE user_newemail='{$recipient_email}' LIMIT 1")); //$chkemail=0; } $emailaddressok=$chkemail['user_pdp_evc']; $pdpuid=$chkemail['user_id']; SE_Language::_preload_multi($email['systememail_subject'], $email['systememail_body']); SE_Language::load(); // GET/DECODE SUBJECT AND MESSAGE $subject = htmlspecialchars_decode(SE_Language::_get($email['systememail_subject']), ENT_QUOTES); $message = htmlspecialchars_decode(SE_Language::_get($email['systememail_body']), ENT_QUOTES); // REPLACE VARIABLES IN SUBJECT AND MESSAGE $subject = vsprintf($subject, $replace); $message = vsprintf($message, $replace); // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $sender = "{$setting['setting_email_fromname']} <{$setting['setting_email_fromemail']}>"; $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if( $bcc ) { $headers .= "Bcc: $recipient_email\n"; $recipient_email = "noreply@domain.com"; }*/ $message.="

BateWorld sent this e-mail to you at ".$recipient_email." because your Notification Preferences indicate that you want to receive this information.

If you do not wish to receive further communications like this you can change your Notification Preferences by clicking here. Please note that it may take up to 10 days to process your request and you must be logged into your account. Alternatively, you can disable your BateWorld account by clicking here.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee or you believe you have received this email by mistake, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Visit our Privacy Policy and Terms of Service if you have any questions."; // SEND MAIL //$success=mail($recipient_email, $subject, $message, $headers); // log this /*$fh=fopen( '/tmp/mail.log', 'a'); if ( $fh ) { if ( $success ) { fwrite( $fh, "mail sent: recip: $recipient_email, subject: $subject\n"); } else { fwrite( $fh, "mail FAIL: recip: $recipient_email, subject: $subject\n"); } fclose( $fh ); }*/ // and we're done ? //return true; require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient_email); //$mail->AddBCC("leprakhauns@gmail.com"); $mail->Subject = $subject; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment $database->database_query('INSERT INTO emailsaved SET email="'.$database->database_real_escape_string($recipient).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5 || $systememail=="lostpassword" || $systememail=="secondaryconfirmation"|| $systememail=="confirmationandpassword"){ //mail("porembaphilip@gmail.com", $subject, $message); $database->database_query('INSERT INTO emailstosend SET email="'.$database->database_real_escape_string($recipient_email).'", message="'.$database->database_real_escape_string($message).'", subject="'.$database->database_real_escape_string($subject).'"'); //$mail->Send(); //$database->database_query("INSERT INTO bateworldcom_zips.emailtracker set email='".$recipient_email."'"); //mail("leprakhauns@gmail.com", "Mail sent", $recipient_email); // mail("porembaphilip@gmail.com", $subject, $message); } //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } // END send_systememail() FUNCTION function send_generic_orig1($recipient, $sender, $subject, $message, $search, $replace, $bcc = FALSE) { // DECODE SUBJECT AND EMAIL FOR SENDING $subject = htmlspecialchars_decode($subject, ENT_QUOTES); $message = htmlspecialchars_decode($message, ENT_QUOTES); // REPLACE VARIABLES IN SUBJECT AND MESSAGE $subject = str_replace($search, $replace, $subject); $message = str_replace($search, $replace, $message); // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if($bcc) { $headers .= "Bcc: $recipient\n"; $recipient = "noreply@domain.com"; }*/ $message.="

Relevant info for Bateworld: ". $_SERVER['HTTP_USER_AGENT']."

BateWorld sent this e-mail to you at ".$recipient." because your Notification Preferences indicate that you want to receive this information.

If you do not wish to receive further communications like this you can change your Notification Preferences by clicking here. Please note that it may take up to 10 days to process your request and you must be logged into your account. Alternatively, you can disable your BateWorld account by clicking here.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee or you believe you have received this email by mistake, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Visit our Privacy Policy and Terms of Service if you have any questions."; require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "mailservices@b8world.com"; // SMTP account username $mail->Password = "d4yEFWTa42ZcVuhztLus"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('mailservices@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient_email); //$mail->AddAddress("bateworldhelp@gmail.com"); //$mail->AddAddress("phil@b8world.com"); //$mail->AddAddress("bate.world@aol.com"); $mail->Subject = $subject; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment if($emailaddressok == 1 || $emailaddressok == 3 || $emailaddressok==5){ // $mail->Send(); //mail("porembaphilip@gmail.com", "send_generic_orig1", $message); } //echo "Message Sent OK

\n"; } catch (phpmailerException $e) {mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage());exit; echo $e->errorMessage()."WWW"; //Pretty error messages from PHPMailer } catch (Exception $e) { echo $e->errorMessage()."PPP"; mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage());exit; } //mail("phil@b8world.com", "MAIL ERROR", $e->getMessage()); // SEND MAIL //mail($recipient, $subject, $message, $headers); //mail("leprakhauns@gmail.com", $subject, $message, $headers); /*mail(, $subject, $message, $headers); mail(, $subject, $message); mail("sean@agndesigns.net", $subject, $message); mail(, $subject, $message, $headers); */ return true; } function send_generic_orig($recipient, $sender, $subject, $message, $search, $replace, $bcc = FALSE) { // DECODE SUBJECT AND EMAIL FOR SENDING $subject = htmlspecialchars_decode($subject, ENT_QUOTES); $message = htmlspecialchars_decode($message, ENT_QUOTES); // REPLACE VARIABLES IN SUBJECT AND MESSAGE $subject = str_replace($search, $replace, $subject); $message = str_replace($search, $replace, $message); // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); // SET HEADERS $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; //$headers .= "From: BateworldHelp@bateworld.com"."\n"; //$sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: support@bateworld.com\n"; // IF BCC, SET TO AND BCC /*if($bcc) { $headers .= "Bcc: $recipient\n"; $recipient = "noreply@domain.com"; }*/ $message.=" BateWorld sent this e-mail to you at ".$recipient." because your Notification Preferences indicate that you want to receive this information.

If you do not wish to receive further communications like this you can change your Notification Preferences by clicking here. Please note that it may take up to 10 days to process your request and you must be logged into your account. Alternatively, you can disable your BateWorld account by clicking here.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee or you believe you have received this email by mistake, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

Visit our Privacy Policy and Terms of Service if you have any questions."; // SEND MAIL mail($recipient, $subject, $message, $headers); // mail('porembaphilip@gmail.com', $subject, $message, $headers); return true; } function send_birthday_email($recipient, $sender, $subject, $message, $search, $replace, $bcc = FALSE) { // DECODE SUBJECT AND EMAIL FOR SENDING $subject = htmlspecialchars_decode($subject, ENT_QUOTES); //$message = htmlspecialchars_decode($message, ENT_QUOTES); // REPLACE VARIABLES IN SUBJECT AND MESSAGE $subject = str_replace($search, $replace, $subject); $message = str_replace($search, $replace, $message); // ENCODE SUBJECT FOR UTF8 $subject="=?UTF-8?B?".base64_encode($subject)."?="; // REPLACE CARRIAGE RETURNS WITH BREAKS $message = str_replace("\n", "
", $message); require_once($_SERVER['DOCUMENT_ROOT'].'/include/mailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP(); // telling the class to use SMTP try { $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "srv6172.mjhst.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->Username = "happybirthday@b8world.com"; // SMTP account username $mail->Password = "gExNDxA7U8f1KGT"; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom('happybirthday@b8world.com', 'Bateworld'); $mail->AddReplyTo('support@bateworld.com', 'Bateworld'); $mail->AddAddress($recipient); $mail->Subject = $subject; //$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically $mail->MsgHTML($message); //$mail->AddAttachment('mailer/images/phpmailer.gif'); // attachment //$mail->AddAttachment('mailer/images/phpmailer_mini.gif'); // attachment $mail->Send(); // mail("porembaphilip@gmail.com", $subject, $message); //echo "Message Sent OK

\n"; } catch (phpmailerException $e) { mail("leprakhauns@gmail.com", "MAIL ERROR", $e->errorMessage()); //echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) { //echo $e->getMessage(); //Boring error messages from anything else! mail("leprakhauns@gmail.com", "MAIL ERROR", $e->getMessage()); } return true; } ?>