Advertisement
Guest User

Untitled

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