Guest User

Untitled

a guest
Dec 28th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. MAIL_DRIVER=sendmail
  2. MAIL_HOST=smtp.gmail.com
  3. MAIL_PORT=587
  4. MAIL_USERNAME=xxxx@gmail.com
  5. MAIL_PASSWORD=xxxx
  6.  
  7. protected function contactMe() {
  8.  
  9. Mail::send('request2e', array(
  10. 'subject' =>Input::get("subject"),
  11. 'email' => Input::get("email"),
  12. 'message1' => Input::get("message1"),
  13. 'number' => Input::get("number")
  14.  
  15. ), function ($message) {
  16.  
  17. $message->from('xxxx@gmail.com', 'Contact');
  18.  
  19. $message->to('yyyy@gmail.com')->subject('Contact');
  20.  
  21. });
  22. return redirect('/');
  23. }
  24.  
  25. MAIL_DRIVER=smtp
Add Comment
Please, Sign In to add comment