config.php 에서 G5_SMTP 부분 수정해줍니다.

define('G5_SMTP',        'smtp.worksmobile.com');

define('G5_SMTP_PORT',   '587'); // 웍스모바일의 경우 pop3/smtp 설정이 아닌 imap/smtp 설정 사용

define('G5_SMTP_SECURE', 'TLS');

define('G5_SMTP_ID',     '아이디'); // 웍스에서 사용하는 계정. 이메일주소

define('G5_SMTP_PW',     '비번'); // 비번은 가급적 암/복호화 모듈을 이용해서 암호화 해줄것

define('G5_SMTP_DEBUG',  0); // 1~4. 확인을 원할때는 1이나 2정도로 수정해서 테스트해보세요.


lib/mailer.lib.php 중 일부 수정

    $mail = new PHPMailer(); // defaults to using php "mail()"


    $mail->Encoding = 'base64'; // 기본값이 8bit 이므로, base64로 변경함.

    $mail->SMTPDebug = (@constant('G5_SMTP_DEBUG') ? G5_SMTP_DEBUG : 0);

    $mail->Debugoutput = 'html';

    //$mail->Timeout = 3; // 타임아웃 3초로 변경(기본값 10초)


    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;


        if(@constant('G5_SMTP_SECURE')) $mail->SMTPSecure = G5_SMTP_SECURE;

        if(@constant('G5_SMTP_ID') && @constant('G5_SMTP_PW')) {

            $mail->SMTPAuth = true; // enable SMTP authentication

            $mail->Username = G5_SMTP_ID;

            $mail->Password = G5_SMTP_PW; // 비번은 가급적 암/복호화 모듈을 이용해서 암호화 해줄것


            // 웍스의 경우 발송메일주소가 로그인아이디와 같아야 함

            //$mail->SetFrom(G5_SMTP_ID, $fname);

            //$mail->AddReplyTo(G5_SMTP_ID, $fname);

            $fmail = G5_SMTP_ID;

        }

    }


    $mail->CharSet = 'UTF-8';


블로그 이미지

먼지손

,