2017-09-06 2 views
0

このようなエラーが発生しています。codeigniterメール送信はpleskサーバを使用しています12.5ウィンドウが動作しません

サーバーで7.0.3 PHPバージョンを使用しています。

私はたくさん試しましたが、動作しませんでした。

`$config = Array(
    'protocol' => 'smtp', 
    'smtp_host' => 'ssl://smtp.gmail.com', 
    'smtp_port' => 465, 
    'smtp_user' => 'useremail', 
    'smtp_pass' => 'yyyyyy', 
    'mailtype' => 'html', 
    'charset' => 'iso-8859-1', 
    'wordwrap' => TRUE, 
    'newline' => "\r\n" 
    ); $this->load->library('email',$config);` 

The mail is going by using port 465. but they created a email from server. what i want is, the mail should go from server email address. Internal mail is working.we are using odin plesk 12.5 server. is it possible to send mail without giving the gmail username and password? i think need to change the setting in mail server. how to change it? please help me. 
+0

あなたのメール設定は何ですか?どのプロトコルによってそれを送信しようとしていますか? –

+0

あなたのコードをここに入力して、お手伝いできるでしょうか。ありがとう! – chad

答えて

0

長い間、pleskカスタマーサポートはsmtpホスト名を指定しました。私はpleskサーバー12.5バージョンを使用しています。コードはこちら

$config = Array(
    'protocol' => 'smtp', 
    'smtp_host' => 'dedrelay.secureserver.net', 
    'mailtype' => 'html', 
    'charset' => 'iso-8859-1', 
    'wordwrap' => TRUE 
    ); 
    $this->load->library('email',$config); 
関連する問題