LoginSignup
0
0

EC-CUBE42からメール送信できない件を解決

Last updated at Posted at 2023-09-18

EC-CUBE4.2.2でメール送信されない

EC-CUBE4.2.2をインストールしたら、メール送信しない
会員登録メール
受注メール
出荷メール

環境

サーバー さくらレンタルサーバー スタンダード
EC-CUBE 4.2.2
PHP Version 8.1.20

.envで確認

vim root/.env
MAILER_DSN=smtp://[メールアドレス]:[passwd]@http://[メールサーバー]:[ポート番号]?auth_mode=plain

いろいろ試すが失敗

MAILER_URL=smtp://[メールアドレス]:[ポート番号]?encryption=ssl&username=[ユーザー名]&password=[passwd]

MAILER_URL=smtp://[メールサーバー]:[ポート番号]?encryption=ssl&auth_mode=login&username=[メールアドレス]&password=[passwd]

MAILER_URL=smtp://[メールサーバー]:[ポート番号]?username=[メールアドレス]&password=[passwd]

MAILER_URL=sendmail://localhost

成功スクリプト

MAILER_DSN=smtp://[メールアドレス]:[passwd]@[メールサーバー]:[ポート番号]?auth_mode=plain

ポイント

メールサーバーの頭にあった "http://" が不要だった

MAILER_URL= ではなく MAILER_DSN= だった

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0