public function prepEmailData($id) {

        $email = $this->email_message->find($id);

        // Build the email data
        // $data is an array
        $data = [];
        $data['from_name']            = $email->from_name;
        $data['from_email_address']   = $email->from_email_address;
        $data['to_name']              = $email->to_name;
        $data['to_email_address']     = $email->to_email_address;
        $data['subject']              = $email->subject;
        $data['body']                 = $email->body;
        $data['site_name']            = config('lasallecmsfrontend.site_name');
        $data['sender_email_address'] = "info@southlasalle.com";

        return $data;
    }
public function prepEmailData($id) {

        $email = $this->email_message->find($id);

        // Build the email data
        // $data is an array
        $data = [];
        $data['from_name']            = $email->from_name;
        $data['from_email_address']   = $email->from_email_address;
        $data['to_name']              = $email->to_name;
        $data['to_email_address']     = $email->to_email_address;
        $data['subject']              = $email->subject;
        $data['body']                 = $email->body;
        $data['site_name']            = config('lasallecmsfrontend.site_name');
        $data['sender_email_address'] = "info@southlasalle.com";

        return $data;
    }
public function prepEmailData ( $ id ) { $ email = $ this -> email_message -> find ( $ id ) ; // Build the email data // $data is an array $ data = [ ] ; $ data [ 'from_name' ] = $ email -> from_name ; $ data [ 'from_email_address' ] = $ email -> from_email_address ; $ data [ 'to_name' ] = $ email -> to_name ; $ data [ 'to_email_address' ] = $ email -> to_email_address ; $ data [ 'subject' ] = $ email -> subject ; $ data [ 'body' ] = $ email -> body ; $ data [ 'site_name' ] = config ( 'lasallecmsfrontend.site_name' ) ; $ data [ 'sender_email_address' ] = "info@southlasalle.com" ; return $ data ; }
Prepare the email

@param  int   $id   The "email_messages" table's ID field
@return array
Prepare the email