1
Codeigniter 전자 메일 라이브러리가 새 서버에서 작동하는 데 문제가 있습니다.SMTP Codeigniter 전자 메일 오류 '354 End data with.'
이 코드는 이전에는 작동했지만 최근에 작동을 멈췄으며 그 이유를 알 수 없습니다. 기본적으로, 여기에 코드입니다 :
$this->email->from('[email protected]', 'Intranet');
$this->email->to($c['email']);//This is def a valid email
//$name is being obtained from elsewhere
$this->email->subject('Time manager reminder');
$this->email->message("
{$name[0]},
<br/><br/>You haven’t completed your time for today. Please don’t forget to do so<br/><br/>
Intranet
");
$this->email->send();
그리고 email.php로 설정 암호는
$config['mailtype'] = "html";
$config['priority'] = 1;
$config['protocol'] = "smtp";
$config['smtp_host'] = "my server..";
$config['smtp_user'] = "u/n";
$config['smtp_pass'] = "p/w";
$config['smtp_timeout'] = 1;
$config['validate'] = true;
다음과 같이 내가 $this->email->print_debugger();
에서 나타나는 오류는 다음과 같습니다
data: 354 End data with .
The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
당신은 전체를 볼 수 있습니다 여기에 붙여 넣기에 오류가 발생했습니다 http://pastebin.com/y9UeaEGY
나는 모든 장소에서 이메일을 보내지 만 유효하고 사용 된 이메일 주소임을 확신 할 수 있습니다.
제공 할 수있는 도움에 감사드립니다. 감사합니다
354는 메시지에 이상한 콘텐츠가 있다는 것을 의미 할 수 있습니다. 메시지에서 사용하는 아포스트로피가 표준 아포스트로피가 아닐 수 있습니다 ... 아포스트로피를 제거하면 어떻게됩니까? – Darrrrrren
안녕하세요. 'You have not'를 'You have not'로 변경하려고 시도했지만 여전히 같은 오류가 발생합니다. – Sinmok
당신은'아님'에 같은 아포스트로피가 있습니다 ... 당신은 둘 다 바꿨습니까? – Darrrrrren