File: D:/HostingSpaces/SBogers93/fitale.nl/app/Komma/Mailers/MailService.php
<?php
namespace Komma\Mailers;
use Illuminate\Support\Facades\Input;
class MailService extends Mailer
{
/**
* This method will send a form to the site admin
* after an user filled in the contact form
*
* @param $input
* @return bool
*/
public function sendContactForm($input)
{
$view = 'emails.contactForm';
//Get the to addres from the config
$to = \Config::get('mail.sendTo.address');
//Set the subject
$subject = \Lang::get('mail.contact.subject');
//Set the email addres as replyTo
$input['replyTo'] = $input['email'];
//Send the email
$this->sendTo($to, $subject, $view, $input);
return true;
}
}