IsSMTP(); // telling the class to use SMTP $mail->Host = "b8world.com"; // SMTP server $mail->SMTPAuth = true; // authentication enabled $mail->Port = 587; // $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail $mail->CharSet = $charset; $mail->Username = $smtpusername; // SMTP account username $mail->Password = $smtppassword; // SMTP account password //$mail->From = "mailservices@b8world.com"; $mail->SetFrom($smtpusername, 'Bateworld'); $mail->AddReplyTo($smtpusername, 'Bateworld'); $mail->AddAddress($recipient); $mail->Subject = $subject; $mail->MsgHTML($message); $mail->Send(); } catch (phpmailerException $e) {mail("phil@b8world.com", "MAIL ERROR", $e->errorMessage()); } catch (Exception $e) { //mail("phil@b8world.com", "MAIL ERROR", $e->getMessage()); } $themailsent="Mail Sent"; echo "
Mail sent to ".$recipient."
"; } //end while exit(); }// end process = 1 } // end isset $_GET } // end datecheck; ?>

Birthday Email

'; echo ""; if($row["user_pdp_evc"]==5) { $sqlup="UPDATE se_users SET user_pdp_evc = 1 WHERE user_id = ".$row["user_id"].""; $qyo=mysql_query($sqlup) or $em=$em.mysql_error(); } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } //end while ?>
On/Off EV2C User Email Address Birthday Inactive
".$row["user_enabled"]."".$row["user_pdp_evc"]."".$row["user_username"]."".$row["user_email"]."".$row["bDate"]."".$row["daysinactive"]."

Today's Birthday Email has already been sent.

";} ?>