Laravel 5 mailgun works locally (Mac OS) but nothing happened on live server -


i developing web application using laravel 5, application needs send email members when registered.

i use mailgun mail driver, works fine locally on mac book pro machine, means should configured correctly, when move ubuntu server (14.04), mailgun didn't send email out neither error message.

i tried using curl command on server, works fine, means server should not block port mailgun.

anyone please can on issue?

as works 1 environment, , not in another, it's configuration problem. might differ in few places mail in laravel.

  • you'll need check pretend in config/mail.php set false. see here.
  • you'll need make sure .env file (if you're using .env) first renamed .env.example .env , check settings set correctly mailgun. wrote small tutorial mailgun laravel 5 here if have problems that.
  • you'll need check third party services file in config/services.php configured correctly. more specifically, need ensure api key set correctly.

if none of these work correctly, you'll have error message in storage/logs folder, recommend checking here hints.


Popular posts from this blog