jawainc / simplecontact

Contact Us plugin for October CMS
6 stars 13 forks source link

Update SimpleContact.php #6

Closed ribsousa closed 8 years ago

ribsousa commented 8 years ago

Add link to the backend message to the e-mail template for notification {{url}}

jawainc commented 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); ...

ribsousa commented 8 years ago

Ok! very nice!