2017-06-26 25 views
-2

を受け入れていない、私はCodeIgniterのを使用してメールを送信しますが、このエラーを返します。ここではパスワードの認証に失敗しました。エラー:535-5.7.8ユーザー名とパスワード

Failed to authenticate password. Error: 535-5.7.8 Username and Password not accepted

は私のコードです:

$this->load->library('email'); 
     $config = Array(
      'protocol' => 'smtp', 
      'smtp_host' => 'ssl://smtp.googlemail.com', 
      'smtp_port' => 587, 
      'smtp_user' => '[email protected]', 
      'smtp_pass' => 'mypass', 
      'mailtype' => 'html', 
      'charset' => 'iso-8859-1' 
     ); 
     $this->load->library('email', $config); 
     $this->email->from('[email protected]'); 
     $this->email->to('[email protected]'); 
     $this->email->subject('This the test'); 
     $this->email->message('this is the test message'); 
     if (!$this->email->send()) 
     { 
      echo $this->email->print_debugger(); 

     } 

私は私を構成しましたこの質問を使用してXamppサーバー:How to configure XAMPP to send mail from localhost?

+0

これはメールサーバーからの応答です。あなたは間違ったユーザー名とそのサーバーのパスワードを使用しているようですね。 – miken32

答えて

-2

sslを使用している場合、smtpポートを465に変更します。

関連する問題