SHARE
TWEET

Untitled

a guest Mar 20th, 2016 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MAIL_DRIVER=smtp
  2. MAIL_HOST=mail.mydomain.ir
  3. MAIL_PORT=587
  4. MAIL_USERNAME=account@mydomain.ir
  5. MAIL_PASSWORD= ....
  6. MAIL_ENCRYPTION=null
  7.    
  8. 'from' => ['address' =>env('MAIL_USERNAME', 'account@mydomain.ir'), 'name' => 'ESET'],
  9.    
  10. public function getEm()
  11. {
  12.     $input = [] ;
  13.     Mail::send('emails.simple', $input, function($message) {
  14.             $message->to('some@gmail.com', 'Learning')->subject('Contact view Our Contact Form');
  15.     });
  16.     return 'Your message has been sent';
  17. }
  18.    
  19. MAIL_DRIVER=smtp
  20. MAIL_HOST=localhost
  21. MAIL_PORT=587
  22. MAIL_USERNAME=account@mydomain.ir
  23. MAIL_PASSWORD=....
  24. MAIL_ENCRYPTION=null
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top