Advertisement
Guest User

Untitled

a guest
Feb 1st, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. require '../mailer/PHPMailerAutoload.php';
  2. $mail = new PHPMailer;
  3. //$mail->SMTPDebug = 3; // Enable verbose debug output
  4. $mail->isSMTP(); // Set mailer to use SMTP
  5. $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
  6. $mail->Host = 'bhinekadjaja.com'; // Specify main and backup SMTP servers
  7. $mail->SMTPAuth = true; // Enable SMTP authentication
  8. $mail->Username = 'no-reply@bhinekadjaja.com'; // SMTP username
  9. $mail->Password = 'Bhineka2019$$'; // SMTP password
  10. $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted
  11. $mail->Port = 465; // TCP port to connect to
  12. $mail->setFrom('no-reply@bhinekadjaja.com', 'PT. Bhineka Putra Perkasa');
  13. //$mail->addAddress('info@astacademy.or.id', ' User'); // Add a recipient
  14. $mail->addAddress($billing_email); // Name is optional
  15. //$mail->addReplyTo('$maildress', '$nama');
  16. $mail->addCC($shipping_email);
  17. //$mail->addBCC('bcc@example.com');
  18. //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
  19. //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
  20. $mail->isHTML(true); // Set email format to HTML
  21. $mail->Subject = $subject;
  22. $mail->Body = $surat;
  23. $mail->AltBody = $surat;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement