前提・実現したいこと
codeigniter とAmazon SESでメールを送信するプログラムを書いております。
amazon sesの設定は終わっておりますが、
codeginiterで下記のように記載して実行すると
該当のソースコード
$this->load->library('email'); $this->load->library("email"); $this->email->initialize(array( 'smtp_crypto' => 'ssl', "protocol" =>"smtp", "smtp_host" => "email-smtp.us-west-2.amazonaws.com", "smtp_port"=>465, "smtp_user"=>'USER', "smtp_pass"=>"PASS", 'crlf' => "\r\n", 'newline' => "\r\n")); $this->email->from($this->shop_email, $this->shop_name);
以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): unable to connect to ssl://email-smtp.us-west-2.amazonaws.com:465 (Connection refused)
nce
The following SMTP error was encountered: 111 Connection refused
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
AMAZON側の設定はできているのに
送信することができません。
あなたの回答
tips
プレビュー