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 "
| On/Off | EV2C | User | Email Address | Birthday | Inactive | ".$row["user_enabled"]." | "; 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 "".$row["user_pdp_evc"]." | "; echo "".$row["user_username"]." | "; echo "".$row["user_email"]." | "; echo "".$row["bDate"]." | "; echo "".$row["daysinactive"]." | "; echo ""; echo ""; } //end while ?> |
|---|
Today's Birthday Email has already been sent.