Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once $inc_class_path . "class.phpmailer.php";
- require_once $inc_class_path . "class.smtp.php";
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->SMTPDebug = 1;
- $mail->Host = "svr06.cpanel.hostsg.com";
- $mail->SMTPAuth = true;
- $mail->Port = 465;
- $mail->SMTPSecure = 'ssl';
- $mail->Username = $smtp_username;
- $mail->Password = $smtp_password;
- $mail->CharSet = "utf-8";
- $mail->setFrom($smtp_username, 'threeBuzz Service');
- $mail->AddAddress("johney.brovo.17@gmail.com",'Johney Brovo');
- $mail->AddReplyTo($smtp_username, 'threeBuzz Service');
- $mail->Subject = 'threeBuzz :: Low Banner Credit';
- $mail->IsHTML(true);
- $mail->Body = 'Hi ,<br /><br /> Below agency has low banner credit. <br /><br />'.$sHTML;
- if (!$mail->Send()) {
- ob_get_clean();
- echo json_encode(array('status' => 'send_mail_fail', 'error' => $mail->ErrorInfo));
- } else {
- ob_get_clean();
- echo json_encode(array('status' => 'send_mail_success'));
- }
Add Comment
Please, Sign In to add comment