아이디/비번찾기 이메일 관련 도와주세요ㅠㅠ

아이디/비번찾기 이메일 관련 도와주세요ㅠㅠ

QA

아이디/비번찾기 이메일 관련 도와주세요ㅠㅠ

본문

/lib/mailer.lib.php


<?php
if (!defined('_GNUBOARD_')) exit;
 
include_once(G5_PHPMAILER_PATH.'/PHPMailerAutoload.php');
 
// 메일 보내기 (파일 여러개 첨부 가능)
// type : text=0, html=1, text+html=2
function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc="", $bcc="")
{
    global $config;
    global $g5;
 
    // 메일발송 사용을 하지 않는다면
    if (!$config['cf_email_use']) return;
 
    if ($type != 1)
        $content = nl2br($content);
 
    $mail = new PHPMailer(); // defaults to using php "mail()"
    if (defined('G5_SMTP') && G5_SMTP) {
        $mail->IsSMTP(); // telling the class to use SMTP
        $mail->Host = G5_SMTP; // SMTP server
        if(defined('G5_SMTP_PORT') && G5_SMTP_PORT)
            $mail->Port = G5_SMTP_PORT;
    }
    $mail->CharSet = 'UTF-8';
    $mail->From = $fmail;
    $mail->FromName = $fname;
    $mail->Subject = $subject;
    $mail->AltBody = ""; // optional, comment out and test
    $mail->msgHTML($content);
    $mail->addAddress($to);
    if ($cc)
        $mail->addCC($cc);
    if ($bcc)
        $mail->addBCC($bcc);
    //print_r2($file); exit;
    if ($file != "") {
        foreach ($file as $f) {
            $mail->addAttachment($f['path'], $f['name']);
        }
    }
    return $mail->send();
}
 
// 파일을 첨부함
function attach_file($filename, $tmp_name)
{
    // 서버에 업로드 되는 파일은 확장자를 주지 않는다. (보안 취약점)
    $dest_file = G5_DATA_PATH.'/tmp/'.str_replace('/', '_', $tmp_name);
    move_uploaded_file($tmp_name, $dest_file);
    $tmpfile = array("name" => $filename, "path" => $dest_file);
    return $tmpfile;
}
?>

 

기존 ****@도메인주소.com 로 되어있는 부분을

G Suite 메일 계정으로 변경했더니

네이버에서는 이 메일은 [도메인주소]을 통해 발송된 메일이 아닙니다. 라는 의심메시지가 뜨고

지메일에서는 스팸함으로 메일이 수신이 됩니다..

 

어떤 부분을 수정해줘야할지.. 자세한 답변 부탁드립니다 ..

 

////////////////

 

https://sir.kr/pg_tip/13641

위 사이트 정보로 수정하려고 했는데..

전혀 다른 내용으로 되어 있어서

이렇게 수정해도 되는 지 ... 도와주세요 ..

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 1,265
QA 내용 검색

회원로그인

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