public function prepareNotificationEmailData($message, $mappedVars) {

        $data = [];

        // Build the email data
        $data['site_name']            = config('lasallecmsfrontend.site_name');

        $data['from_name']            = $data['site_name'];
        $data['from_email_address']   = config('lasallecmsusermanagement.administrator_first_among_equals_email');
        $data['to_email_address']     = trim($mappedVars['from_email_address']);
        $data['to_name']              = $this->genericWashText($data['from_name']);
        $data['subject']              = "Notification email from ".$data['site_name'];
        $data['message']              = $message;

        return $data;
    }
public function prepareNotificationEmailData($message, $mappedVars) {

        $data = [];

        // Build the email data
        $data['site_name']            = config('lasallecmsfrontend.site_name');

        $data['from_name']            = $data['site_name'];
        $data['from_email_address']   = config('lasallecmsusermanagement.administrator_first_among_equals_email');
        $data['to_email_address']     = trim($mappedVars['from_email_address']);
        $data['to_name']              = $this->genericWashText($data['from_name']);
        $data['subject']              = "Notification email from ".$data['site_name'];
        $data['message']              = $message;

        return $data;
    }
public function prepareNotificationEmailData ( $ message , $ mappedVars ) { $ data = [ ] ; // Build the email data $ data [ 'site_name' ] = config ( 'lasallecmsfrontend.site_name' ) ; $ data [ 'from_name' ] = $ data [ 'site_name' ] ; $ data [ 'from_email_address' ] = config ( 'lasallecmsusermanagement.administrator_first_among_equals_email' ) ; $ data [ 'to_email_address' ] = trim ( $ mappedVars [ 'from_email_address' ] ) ; $ data [ 'to_name' ] = $ this -> genericWashText ( $ data [ 'from_name' ] ) ; $ data [ 'subject' ] = "Notification email from " . $ data [ 'site_name' ] ; $ data [ 'message' ] = $ message ; return $ data ; }
Prepare the data needed to send out a notification email to the inbound email's sender

NOTE! USING MAILGUN SPECIFIC POST VARS FOR THE "TO" EMAIL FIELDS!


@param  string  $message              Message to put in the body of the email
@param  array   $mappedVars           Inbound POST vars mapped to database fields
@return array
Prepare the data needed to send out a notification email to the inbound email s sender