Support the ongoing development of Laravel.io →
Requests Mail Forms
Last updated 2 weeks ago.
0

Is there anything in the laravel log? Also you should include what driver you are using (smtp, an api, etc)

0

Thanks for your reply.

Not sure how to check log, i will try to find out.

my current Heroku variables as below

Your alt text here

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.

Your alt text here

Heroku: http://hazzir.herokuapp.com/ Github: https://github.com/asimkh/apps/tree/hazzir

Last updated 4 years ago.
0

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!

Last updated 5 years ago.
0

Would that domain be the cause?

$message->to('[email protected]', 'Admin Hazzir');

0

Thanks for pointing out that, I updated here https://github.com/asimkh/apps/blob/hazzir/app/Http/Controller...

Works fine!

Your alt text here

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 :)

Last updated 4 years ago.
0

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).

0

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.

Last updated 4 years ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

asimkh asimkh asimkh Joined 19 Jul 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.