Last active
December 3, 2017 11:51
-
-
Save iboved/9dee16f725665aa50f8abdb5b77e101b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
Mail::send('vitae.application::mail.application', $data, function ($message) use ($application) { | |
$message->to($application->email, 'Nuts vH'); | |
}); | |
Flash::success('Message sent successfully'); | |
} catch (\Exception $exception) { | |
Log::error(sprintf('Failed to send email. Error details: %s', $exception)); | |
Flash::error('An error has occurred'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment