/**
  * @param ContactFormRequest $request
  * @return mixed
  */
 public function store(ContactFormRequest $request)
 {
     \Mail::send('emails.contact', ['name' => $request->get('name'), 'email' => $request->get('email'), 'user_message' => $request->get('message')], function ($message) {
         $message->from('*****@*****.**');
         $message->to('*****@*****.**')->subject('TodoParrot Feedback');
     });
     return \Redirect::route('contact')->with('message', 'Thanks for contacting us!');
 }
Esempio n. 2
0
 public function store(ContactFormRequest $request)
 {
     \Mail::send('emails.contact', array('name' => $request->get('name'), 'email' => $request - get('email'), 'user_message' => $request->get('message')), function ($message) {
         $message->from('*****@*****.**');
         $message->to('*****@*****.**', 'Admin')->subject('TODOParrot Feedback');
     });
     return \Redirect::route('contact')->with('message', 'Thanks for contacting us!');
 }
Esempio n. 3
0
 public function store(ContactFormRequest $request)
 {
     \Mail::send('emails.contact', array('name' => $request->get('name'), 'email' => $request->get('email'), 'user_message' => $request->get('message')), function ($message) {
         $message->from(env('EMAIL_FROM'));
         $message->to(env('EMAIL_FROM'), env('MAIL_NAME'));
         $message->subject('TODOParrot Feedback');
     });
     return \Redirect::route('contact')->with('message', 'Thanks for contacting us!');
 }