Hello
I am looking for a help to send email notification once a record is added.
For example, a user add a data, admin receive a message, something like " Hello, a new record just added by 'username'".
Thank you
Email notification
Re: Email notification
Hello
By following a post on the forum I find this code but when I try I get this error, any help please Thank you
By following a post on the forum I find this code but when I try I get this error, any help please Thank you
Re: Email notification
got it, here the correct code
foreach($data as $field => $value){
$messageData .= "$field: $value \n";
}
sendmail(array(
'to' => '[email protected]',
'name' => 'Mohamed Youba',
'subject' => 'Transfert',
'message' => "Un transfert a été envoyé par {$memberInfo['username']}: \n\n" . $messageData
));
return TRUE;
}
Thanks
foreach($data as $field => $value){
$messageData .= "$field: $value \n";
}
sendmail(array(
'to' => '[email protected]',
'name' => 'Mohamed Youba',
'subject' => 'Transfert',
'message' => "Un transfert a été envoyé par {$memberInfo['username']}: \n\n" . $messageData
));
return TRUE;
}
Thanks
Re: Email notification
Hello
Any help please. I got this working well, but now I need notification to be sent only every week or month
Thank you
Any help please. I got this working well, but now I need notification to be sent only every week or month
Thank you
Re: Email notification
Hi Moh,
do you want the email after insert (as seen in screenshot) or at certain time intervals?
If time intervals, I suggest writing that piece of code in a seperate .php file and then use a simple cron (Linux) or at (windows) to call that script.
If you have no cron available, you could sign up for free here: https://www.cronjob.de
Olaf
do you want the email after insert (as seen in screenshot) or at certain time intervals?
If time intervals, I suggest writing that piece of code in a seperate .php file and then use a simple cron (Linux) or at (windows) to call that script.
If you have no cron available, you could sign up for free here: https://www.cronjob.de
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
Re: Email notification
Hi Olaf
I want to send the email with interval, for example every week
I am going to have a look on your link
Thank you
I want to send the email with interval, for example every week
I am going to have a look on your link
Thank you