영카트5 메일 질문합니다.
본문
Warning: fsockopen(): unable to connect to 127.0.0.1:25 (Connection refused) in /home/ekhoserver50/www/plugin/PHPMailer_v2.0.4/class.smtp.php on line 122
인증메일 부분에서 이런 에러가 떠서 문의했었습니다.
관리자님의 답변은
config.php 의
define('G5_SMTP', '127.0.0.1') 를
define('G5_SMTP', ''); 이거였는데
현재
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/ekhoserver50/www/plugin/PHPMailer_v2.0.4/class.smtp.php on line 122 Warning: fsockopen(): unable to connect to :25 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/ekhoserver50/www/plugin/PHPMailer_v2.0.4/class.smtp.php on line 122
이런 에러가 뜹니다..
사실 호스팅받은 메일서버, 계정도 있지만 설정을 하지 못한상태입니다.
어느경로 어느부분을 설정해줘야 할까요?
호스팅 주소는 여기구요
ekhoserver.woobi.co.kr
메일 계정은 ekh0285입니다.
웹메일 주소는 http://webmail.woobi.co.kr/ 입니다.
설정좀 도와주세요 ㅠㅠ
답변 2
lib/mailer.lib.php 를
if (defined('G5_SMTP')) {
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = G5_SMTP; // SMTP server
} else {
$mail->IsMail();
}
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = G5_SMTP; // SMTP server
} else {
$mail->IsMail();
}
이런 코드로 수정해 보시기 바랍니다.
config.php 를
define('G5_SMTP', '');
lib/mailer.lib.php 를
if (defined('G5_SMTP') && G5_SMTP) {
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = G5_SMTP; // SMTP server
}
와 같이 수정해 보시기 바랍니다.
답변을 작성하시기 전에 로그인 해주세요.