Use better description for the contact controller mail comment

This commit is contained in:
Kevin MacMartin 2016-08-05 14:19:17 -04:00
parent c7e93038c2
commit be7331fe20

View file

@ -24,7 +24,7 @@ class ContactController extends Controller {
$contact->message = $message; $contact->message = $message;
$contact->save(); $contact->save();
// Send the email if this is the production environment // Send the email if the MAIL_SENDTO variable is set
if (env('MAIL_SENDTO') != null) { if (env('MAIL_SENDTO') != null) {
Mail::send('email.contact', [ 'contact' => $contact ], function ($mail) use ($contact) { Mail::send('email.contact', [ 'contact' => $contact ], function ($mail) use ($contact) {
$mail->from(env('MAIL_ADDRESS'), env('SITE_NAME')) $mail->from(env('MAIL_ADDRESS'), env('SITE_NAME'))