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

I am not receiving any errors when I press submit. I'm just redirected to the contact view. Other mailers work fine so its not a driver issue or anything like that.

Last updated 2 years ago.
0

I've tried your code and it works for me. Do u have the debug mode activated in the app/config?

Last updated 2 years ago.
0

This happened to me once and it was because the view for the e-mail body was missing. So please make sure you have this view: app/views/emails/contact.blade.php

as it's referenced in

Mail::send('emails.contact', $data, function($message) use($data)
Last updated 2 years ago.
0

stephanecoinon said:

This happened to me once and it was because the view for the e-mail body was missing. So please make sure you have this view: app/views/emails/contact.blade.php

as it's referenced in

Mail::send('emails.contact', $data, function($message) use($data)

It exists. But I'll double check - thanks!

Last updated 2 years ago.
0

cherrycoding said:

I've tried your code and it works for me. Do u have the debug mode activated in the app/config?

Just took my app out of debug mode and mail still won't send. User registration/forgotten password emails send, however.

Last updated 2 years ago.
0

In app/config/mail.php there is a variable, which disallow sending mails.

Last updated 2 years ago.
0

Albert221 said:

In app/config/mail.php there is a variable, which disallow sending mails.

Other mail sends without error, such as user registration and forgotten passwords.

Last updated 2 years ago.
0

You can use stmp of google.
And check phpinfo() your server. maybe openssl disable....
You can check laravel.log find error.
I'm sure have error on it
And you should use

if(isset($data)){
 #code.....
}
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

sejr sejr Joined 23 Jul 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.