Advertisement
Guest User

Untitled

a guest
Sep 29th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2. require "./plugin/phpmailer/PHPMailer.php";
  3. $mail = new PHPMailer(true);                              // Passing `true` enables exceptions
  4. try {
  5.     //Server settings
  6.     $mail->SMTPDebug = 2;                                 // Enable verbose debug output
  7.     $mail->isSMTP();                                      // Set mailer to use SMTP
  8.     $mail->Host = "smtp.naver.com";  // Specify main and backup SMTP servers
  9.     $mail->SMTPAuth = true;                               // Enable SMTP authentication
  10.     $mail->Username = "test_account";                 // SMTP username
  11.     $mail->Password = "dlwlsgmldmgkgk";                           // SMTP password
  12.     $mail->SMTPSecure = "tls";                            // Enable TLS encryption, `ssl` also accepted
  13.     $mail->Port = 587;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement