HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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;
    }
}