2015-01-08 2 views
1

안녕하십니까, cakephp 프레임 워크를 통해 이메일을 보내려하지만 불행히도 이메일이 전송되지 않습니다. 그러나 내가 구글, 아웃룩, rediffmail과 같은 소셜 이메일 서비스 제공자를 사용할 때 이메일이 배달된다.cakephp의 개인 메일 서버에서 이메일을 보내지 못합니다.

내 SMTP 포트는 내가 CakePHP의 메일() 함수 아래에 사용하고 465이다 :

public $gmail = array(
    'host' => 'ssl://smtp.techphant.com', 
    'port' => 465, 
    'username' => '[email protected]', 
    'password' => 'xxxxxx', 
    'transport' => 'smtp',  
); 

또한 내가 시도 포트 번호 2525 25 만 아무 소용에.

제안 사항을 알려주십시오.

미리 감사드립니다.

+0

메일 서버의 로그 파일을보고 오류가 발생했는지 확인해 보셨습니까? 또는 디버그 로깅을 사용하도록 설정 했습니까? –

+0

yaah, 노력하고 있습니다 –

+0

이메일 오류가 없습니다 –

답변

0

cake와 함께 eamil을 보내려고합니다. mail() 기능이없는 이메일 구성 요소.

$this->set(
    'content', 
    '<h1>Hi </h1> 
    <p>Thanks for contact us. We will respond you soon</p> 
    ' 
); 

$this->Email->smtpOptions = array(
     'host' => 'ssl://smtp.techphant.com', 
     'port' => 465, 
     'username' => '[email protected]', 
     'password' => 'xxxxxx', 
     'timeout' => 30, 
     'client' => null 
    ); 
    $this->Email->to = '[email protected]'; 
    $this->Email->subject = 'Thanks for contact us'; 
    $this->Email->from = '[email protected]'; 
    $this->Email->template = 'default'; 
    $this->Email->sendAs = 'html'; 
    $this->Email->send(); 

감사합니다!

+0

제가 확인합니다 ... –

관련 문제