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.
I've tried your code and it works for me. Do u have the debug mode activated in the app/config?
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)
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!
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.
In app/config/mail.php there is a variable, which disallow sending mails.
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.
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.....
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community