폼메일 문의 드립니다.
본문
폼메일 사용하려고 하는데 환경설정에서 막혀서 문의 드립니다. 지메일 관련해서 넣으니깐 이메일 프로그램에서 차단했다고 나옵니다.
// SMTP Server Settings
$config['smtp_host'] = 'smtp.naver.com'; // eg.: smtp.mandrillapp.com
$config['smtp_port'] = 465; // eg.: 587
$config['smtp_user'] = '********@naver.com'; // *** 개인정보보호를 위한 이메일주소 노출방지 ***
$config['smtp_pass'] = '********'; // password
$config['smtp_ssl'] = true; // true for google (port 465), false for others
// Who receive all emails?
$config['send_to'] = '********@naver.com'; // destination of all emails sent throught contact form
// Email Subject
$config['subject'] = 'Company Contact Form'; // subject of emails you receive
?>
답변 2
https://funyphp.com/archive/gnuboard/36
기본적으로 메일을 다음 메일로 셋팅하세요
그리고 본인의 메일계정 >> 환경설정에서 smtp 열어주셔야합니다.
lib 25줄과 26줄 사이에
$mail->isSMTP();
//$mail->SMTPDebug = 2;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.daum.net";
$mail->Port = 465;
$mail->Username = '다음아이디';
$mail->Password = '다음비밀번호';
$fmail = $config['cf_admin_email']; //보내는 사람의 메일은 무조건 관리자여야 한다. 2018.10.04 14:23:50 FreeMaster
$mail->AddReplyTo($fmail, $config['cf_admin_email_name']);
이런식으로 추가해보세요