Guest User

Untitled

a guest
Oct 16th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. require_once $inc_class_path . "class.phpmailer.php";
  2. require_once $inc_class_path . "class.smtp.php";
  3. $mail = new PHPMailer();
  4. $mail->IsSMTP();
  5. $mail->SMTPDebug = 1;
  6. $mail->Host = "svr06.cpanel.hostsg.com";
  7. $mail->SMTPAuth = true;
  8. $mail->Port = 465;
  9. $mail->SMTPSecure = 'ssl';
  10. $mail->Username = $smtp_username;
  11. $mail->Password = $smtp_password;
  12.  
  13. $mail->CharSet = "utf-8";
  14. $mail->setFrom($smtp_username, 'threeBuzz Service');
  15. $mail->AddAddress("johney.brovo.17@gmail.com",'Johney Brovo');
  16. $mail->AddReplyTo($smtp_username, 'threeBuzz Service');
  17. $mail->Subject = 'threeBuzz :: Low Banner Credit';
  18. $mail->IsHTML(true);
  19. $mail->Body = 'Hi ,<br /><br /> Below agency has low banner credit. <br /><br />'.$sHTML;
  20.  
  21. if (!$mail->Send()) {
  22. ob_get_clean();
  23. echo json_encode(array('status' => 'send_mail_fail', 'error' => $mail->ErrorInfo));
  24. } else {
  25. ob_get_clean();
  26. echo json_encode(array('status' => 'send_mail_success'));
  27. }
Add Comment
Please, Sign In to add comment