Closed ribsousa closed 8 years ago
There is no need to make a separate database call to get message id.
can be done this way:
if(Settings::get('recieve_notification',false) && !empty(Settings::get('notification_email_address',''))) $this->sendNotificationMail($model->id);
and in sendNotification function:
protected function sendNotificationMail($message_id){ $url_message = Backend::url('zainab/simplecontact/simplecontact/view/'.$message_id); ...
Ok! very nice!
Add link to the backend message to the e-mail template for notification {{url}}