RISE saves every email it sends in the Email logs. Admins can check later who got which email, when it was sent, and if sending failed.
Open the email log
Go to Reports > Email logs. Only admins can see it.
If you don't see the link, go to Settings > Modules and turn on Email log. Emails are saved even when this module is off. The module only shows or hides the page.
What is saved
- Date, sender, recipients, CC, BCC and reply-to address.
- Subject and message.
- Names of the attached files (not the files).
- Related record, like an invoice or an estimate. Click it to open the record. For a notification email, the link opens Settings > Notifications filtered to that event, so you can check who gets it and turn the email on or off.
- Email template, email protocol and the user who sent it (a link to the user). Visitor means it was sent for someone who was not signed in, like a password reset. System means it was sent automatically, like by the cron job.
- Status: Pending (being sent), Sent or Failed. Failed emails show the error.
Use the filters to find emails by status, related record or date. Click Date between the two date buttons to pick today, yesterday, this month, last month, this year or last year. Search works on the email address, subject and related record.
Delete emails
Click the x icon on a row to delete one email. To delete many emails, click the selection button next to the filters, choose Select specific or Select all, then click Delete selected items.
Deleted emails are removed for good. You can't undo it.
GDPR
When GDPR is enabled in Settings > GDPR, RISE also deletes the saved emails of a person when you delete them. This works for team members, client contacts, lead contacts, and clients or leads with all their contacts. Every saved email with their address in To, CC, BCC or Reply to is removed for good.
Emails without a saved message
Some emails have a password or a secure link, like the reset password, login details, sign up and invitation emails. RISE saves these emails without the message, so nobody can use the link or the password from the log.
For plugin developers
Emails sent with send_app_mail() or send_email_template() are saved automatically. Add email_log to the options to link the email to your record:
send_app_mail($email, $subject, $message, array(
"email_log" => array(
"context" => "my_plugin_order", //a-z, 0-9 and _ only
"context_id" => $order_id,
"template_name" => "my_plugin_order_received",
"hide_message" => false //true when the message has a password or a secret link
)
));
To make your context clickable in the log, return the record URL:
app_hooks()->add_filter("app_filter_email_log_context_url", function ($url, $options) {
if ($options["context"] === "my_plugin_order") {
return get_uri("my_plugin/orders/view/" . $options["context_id"]);
}
return $url;
}, 10, 2);