Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "./plugin/phpmailer/PHPMailer.php";
- $mail = new PHPMailer(true); // Passing `true` enables exceptions
- try {
- //Server settings
- $mail->SMTPDebug = 2; // Enable verbose debug output
- $mail->isSMTP(); // Set mailer to use SMTP
- $mail->Host = "smtp.naver.com"; // Specify main and backup SMTP servers
- $mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = "test_account"; // SMTP username
- $mail->Password = "dlwlsgmldmgkgk"; // SMTP password
- $mail->SMTPSecure = "tls"; // Enable TLS encryption, `ssl` also accepted
- $mail->Port = 587;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement