Hi guys!

This module seems great. However, we need to keep track of the site's sent emails - thus, it would be very handy if this module could somehow save the emails to the database (sql). Optimally making it possible to create a date-ordered or user-ordered list of all sent emails.

Possible??

Best,
Thomas

Comments

hansfn’s picture

It depends what you want to store - the message with tokens or the message with the token replaced? The later can be solved using hook_views_send_mail_queued - see the end of #1960402: Rules thats can use row data for an example. (You just need to make sure that you only store one message - not all of them.) The former, message with the tokens, can probably be solved using a normal hook_form_alter and adding your own submit handler.

Making a list of the sent emails is then just standard Drupal stuff - displaying the result of a query or using Views to fetch from SQL.

I think this should be in an separate module - "Views Send Archive" for example. I don't have time to implement such a module, sorry.

PS! My current "solution" is to send a copy of the email to an archive mail account.

hansfn’s picture

Status: Active » Closed (won't fix)

Sorry, but I don't see that I will have time to fix any D7 issues.