Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Route::get('send_test_email', function(){
- Mail::raw('Sending emails with Mailgun and Laravel is easy!', function($message)
- {
- try {
- //$this->buildXMLHeader;
- $message->subject('Mailgun and Laravel are awesome!');
- $message->to('*****@gmail.com');
- if(count(Mail::failures()) > 0) {
- echo "<pre>";
- print_r(Mail::failures());
- die;
- }
- echo "SUCCESS";exit;
- }
- catch (Exception $e) {
- return $e->getMessage();
- }
- });
- });
- MAIL_DRIVER=mailgun
- MAIL_HOST=localhost
- MAIL_PORT=25
- MAIL_USERNAME=null
- MAIL_PASSWORD=null
- MAIL_ENCRYPTION=null
Add Comment
Please, Sign In to add comment