try {
$mail = new PHPMailer(); // defaults to using php "mail()"
if (defined('G5_SMTP') && G5_SMTP) {
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = 'smtp.naver.com'; // SMTP server
//if(defined('G5_SMTP_PORT') && G5_SMTP_PORT)
$mail->Port = 465;
$mail->SMTPSecure = 'ssl';
$mail->SMTPAuth = true;
$mail->Username = '메일주소';
이 부분만 수정해주면 되는게 아니였을까요?
구글(2단계, 앱패스워드) , 네이버 모두 안되서 문의를 남겨봅니다..ㅠㅠ
|
답변 3개
답변을 작성하려면 로그인이 필요합니다.