Example #1
0
 public function update()
 {
     $footer = Footer::first();
     $footer->email = Input::get("email");
     $footer->street = Input::get("street");
     $footer->zipcode = Input::get("zipcode");
     $footer->city = Input::get("city");
     $footer->save();
     return redirect('cms/footer');
 }
 private function sendMail()
 {
     $footer = Footer::first();
     $to_email = $footer->email;
     $email = Input::get("email");
     $retval = Mail::send('emails.corporate_clothing', array("message_body" => Input::get("message"), "first_last_name" => Input::get("first_last_name"), "email" => $email, "uploaded_files" => Input::get("uploaded_files")), function ($message) use($to_email, $email) {
         $message->to($to_email)->subject("CZ bedrijfskleding " . $email);
     });
     if ($retval) {
     } else {
     }
 }
Example #3
0
 private function sendMail()
 {
     $footer = Footer::first();
     $to_email = $footer->email;
     $email = Input::get("email");
     $retval = Mail::send('emails.contact', array("message_body" => Input::get("message"), "firstname" => Input::get("firstname"), "lastname" => Input::get("lastname"), "email" => $email), function ($message) use($to_email, $email) {
         $message->to($to_email)->subject("CZ contact " . $email);
     });
     if ($retval) {
     } else {
     }
 }