1
1台のサーバーからgodaddyにYii2 Webサイトを展開しました。その表示エラー: -Yii2 smtp電子メールがgodaddyで動作していません
'If you receive error " Connection could not be established with host smtp.gmail.com [Connection refused #111] "'
私は下のメールのconfigsを設定している
: -
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => 't********[email protected]',
'password' => '***************',
'port' => '465',
'encryption' => 'tls', //depends if you need it
],
],
ない方法それは送信者、ホスト、ユーザーパスワードのものがここでコメントされている場合でも動作しますか? –
わかりません。しかし、私はphp mail(mail())関数には資格情報が必要ないので、それを要求していないと思います。 –