SMTP Error:Could not authenticate

SMTP Error:Could not authenticate

QA

SMTP Error:Could not authenticate

본문

<?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.naver.com';   // eg.: smtp.mandrillapp.com

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

$config['smtp_user']            = '********.com';             // *** 개인정보보호를 위한 이메일주소 노출방지 ***

$config['smtp_pass']            = '********';               // password

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

 

// Who receive all emails?

$config['send_to']              = '********.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

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

 

SMTP Error:Could not authenticate 라는 오류

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

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

 


// SMTP Server Settings
$config['smtp_host']            = 'smtp.naver.com';   // eg.: smtp.mandrillapp.com
$config['smtp_port']            = 465;                      // eg.: 587
$config['smtp_user']            = '********.com';  // 네이버 로그인 계정
$config['smtp_pass']            = '********';               // 네이버 로그인 암호
$config['smtp_ssl']             = true;                     // true for google (port 465), false for others
 
// Who receive all emails?
$config['send_to']              = '********.com';         // 받는 사람 이메일 주소
 
 

<?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'; // *** 개인정보보호를 위한 이메일주소 노출방지 ***
$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
?>

전달:
자세히 알아보기

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

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

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

imap허용했는대도 연결이 안되요. ㅜ

답변을 작성하시기 전에 로그인 해주세요.
전체 14,899
QA 내용 검색
filter #php ×

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT