appointmentDate->format('Y-m-d')); $fromCompanyId = isset($authData['company']['id']) ? $authData['company']['id'] : null; $fromProfileId = isset($authData['id']) ? $authData['id'] : null; $toCompanyId = $fromCompanyId; $toProfileId = $record->valuation->valuatedBy; $email = $record->valuation->email; $mobile = null; $subject = "Notification of successful submission of vehicle"; $templateName = 'public-general'; $params['body'] = '
Good Day ' . $record->valuation->firstName . ' ' . $record->valuation->familyName . ',
 
Your WePay4Cars valuation appointment has been updated.
 
  Year: ' . $record->valuation->stock->vehicleYear->name . '  
  Make: ' . $record->valuation->stock->type->model->make->name . '  
  Model: ' . $record->valuation->stock->type->model->name . '  
  Type: ' . $record->valuation->stock->type->name . '  
  Reg no: ' . $record->valuation->stock->registrationNumber . '  
 
Please not that the price offered on your vehicle is subject to final viewing.
Your booking for valuation will take place at:
 
'; $params['body'] .= $record->valuation->stock->company->name . ' ( ' . null != $record->valuation->stock->company->contact->office ? null != $record->valuation->stock->company->contact->office : $record->valuation->stock->company->contact->mobile . ' ) '; $params['body'] .= '
 
Date / Time:
' . $appointmentDate->format('Y-m-d') . '
' . $record->timeSlot->timeSlotDisplayName . '
 
Your Address:
' . $record->valuation->customerAddressStreet . '
' . $record->valuation->customerAddressStreetName . '
' . $record->valuation->customerAddressSuburb . '
' . $record->valuation->customerAddressCity . '
' . $record->valuation->customerAddressPostalCode . '
 
Email:
' . $record->valuation->email . '
 
Regards
WePay4Cars Team
'; $params['smsBody'] = ''; // error_log('email body'); // error_log($params['body']); $oNotify = new \Utility\Comms\Notification(); $oNotify->sendFromTemplate( $fromCompanyId, $fromProfileId, $toCompanyId, $toProfileId, $email, $mobile, $subject, $templateName, $params ); } }