Is there anything in the laravel log? Also you should include what driver you are using (smtp, an api, etc)
Thanks for your reply.
Not sure how to check log, i will try to find out.
my current Heroku variables as below
on my mac, i am using vagrant and setup local env variables as below. Test email is working but due to some reason on contact form submitted it shows "sent successfully" but no email is sent.
Heroku: http://hazzir.herokuapp.com/ Github: https://github.com/asimkh/apps/tree/hazzir
Hi,
I was able to config laravel on heroku properly at http://hazzir.herokuapp.com/
if you test http://hazzir.herokuapp.com/testmail
or
http://hazzir.herokuapp.com/mail
I can confirm on my email, its sending mail but
via contact form http://hazzir.herokuapp.com/shout its not!
Thanks for pointing out that, I updated here https://github.com/asimkh/apps/blob/hazzir/app/Http/Controllers/ShoutController.php
Works fine!
I tested it but seems my mail gun serve is sending emails with delay! anyways How i can check logs in laravel so i can confirm email is sendout? just incase :)
I don't think laravel will log that you're sending a mail by itself.
If you're using mailgun, I believe you can see it in their interface under Logs after you log in.
For local development you can change the maildriver to log (MAIL_DRIVER=Log in .env) or use something like mailtrap, see (https://laravel.com/docs/5.2/mail#mail-and-local-development).
Check whether you have setup the mailing functionality correctly or not from the scratch. You can follow this tutorial: Laravel Send Email Check whether you have configured the routes correctly.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community