테스트 사이트 - 개발 중인 베타 버전입니다

SMTP Error:Could not authenticate 채택완료

정복이 5년 전 조회 5,628

 

// USE SMTP OR mail()

// SMTP is recommended, mail() is disabled on most shared hosting servers.

// IF false : SMTP host/port/user/pass/ssl not used, leave empty or as it is!

$config['use_smtp']             = true;                     // true|false

 

// SMTP Server Settings

$config['smtp_host']            = 'smtp.naver.com';   // eg.: smtp.mandrillapp.com

$config['smtp_port']            = 465;                      // eg.: 587

$config['smtp_user']            = '********@naver.com';             // you@gmail.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

 

 

gmail로 메일을 받고싶은데 저 부분에서 어디어디에 제 메일을 써야하나요?

그리고 메일을 보내려하면 SMTP Error:Could not authenticate 라는 오류가 떠요 ㅜㅜ 어떻게 해결하는지 아시는분 있을까요?

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
H
5년 전

참고 : https://sir.kr/qa/236955

 

SMTP Error:Could not authenticate 라는 오류

  ==> 1. www.naver.com 로그인 > 메일 환경설정 > POP 사용 여부 확인

  ==> 2. 메일 환경 설정에 POP 사용 설명이 있으니 그 내용을 참고

 

</p>

<p>// SMTP Server Settings</p>

<p>$config['smtp_host']            = 'smtp.naver.com';   // eg.: smtp.mandrillapp.com</p>

<p>$config['smtp_port']            = 465;                      // eg.: 587</p>

<p>$config['smtp_user']            = '********<a class="mention_user_info" href="<a href="https://sir.kr/main/member/?mb_id=bajie123" target="_blank" rel="noopener noreferrer">https://sir.kr/main/member/?mb_id=bajie123</a>" target="_blank">@naver</a>.com';  // 네이버 로그인 계정</p>

<p>$config['smtp_pass']            = '********';               // 네이버 로그인 암호</p>

<p>$config['smtp_ssl']             = true;                     // true for google (port 465), false for others</p>

<p> </p>

<p>// Who receive all emails?</p>

<p>$config['send_to']              = '********<a class="mention_user_info" href="<a href="https://sir.kr/main/member/?mb_id=bajie123" target="_blank" rel="noopener noreferrer">https://sir.kr/main/member/?mb_id=bajie123</a>" target="_blank">@naver</a>.com';         // 받는 사람 이메일 주소</p>

<p> </p>

<p> </p>

<p>

로그인 후 평가할 수 있습니다

답변에 대한 댓글 6개

정복이
5년 전
gmail 메일 계정으로 보내고 싶습니다 ㅜ smtp허용 다 했는데 계속 저렇게 뜨네요
만수킴
5년 전
작성하신 코드를 올려주시면 빠른 답변이 될거에요~
만수킴
5년 전
https://sir.kr/qa/302367
여기도 같은 질문이고 해결하셨네요.
정복이
5년 전
<?php

// USE SMTP OR mail()
// SMTP is recommended, mail() is disabled on most shared hosting servers.
// IF false : SMTP host/port/user/pass/ssl not used, leave empty or as it is!
$config['use_smtp'] = true; // true|false

// SMTP Server Settings
$config['smtp_host'] = 'smtp.gmail.com'; // eg.: smtp.mandrillapp.com
$config['smtp_port'] = 465; // eg.: 587
$config['smtp_user'] = '********@gmail.com'; // you@gmail.com
$config['smtp_pass'] = '********'; // password
$config['smtp_ssl'] = true; // true for google (port 465), false for others

// Who receive all emails?
$config['send_to'] = '********@gmail.com'; // destination of all emails sent throught contact form

// Email Subject
$config['subject'] = 'Company Contact Form'; // subject of emails you receive
?>
정복이
5년 전
전달:
자세히 알아보기

도움말: 필터를 만들면 메일 중 일부만 전달할 수도 있습니다.
POP 다운로드:
자세히 알아보기
1. 상태: 모든 메일에 대해 POP가 사용 설정되어 있습니다.
이미 다운로드 된 메일을 포함하여 모든 메일에 POP를 활성화 하기
지금부터 수신되는 메일에만 POP를 사용하기
POP 사용 안함

2. POP로 메시지를 여는 경우
Gmail 사본을 받은편지함에 보관하기

3. 이메일 클라이언트 구성 (예: Outlook, Eudora, Netscape Mail)
설정 방법
IMAP 액세스:
(IMAP를 사용하여 다른 클라이언트에서 Gmail에 액세스)
자세히 알아보기
상태: IMAP를 사용할 수 있습니다.
IMAP 사용

imap허용했는대도 연결이 안되요. ㅜ
만수킴
5년 전
POP으로 하셔야 합니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인