Hello,
Simplenews is great module and it's even greater when it is possible to add custom functionality (for example by using rules).
Unfortunately I was not able to find the rule event "Simplenews e-mail was sent", therefore I'm sending this feature request.
My use case, where this event might be helpful, is following:
- I want to send simplenews e-mail to site users.
- And after sending each individual e-mail it would be nice to have some way to easily "plug-in" my own functionality (for example with reaction to rule event).
- (Maybe it might be helpful to provide also some hook_simplenews_mail_alter() that will allow users to alter individual e-mail data right before sending)
Thank you for considering.
Comment | File | Size | Author |
---|---|---|---|
#4 | simplenews-send_status_update_rules_event-1891010-4.patch | 2.17 KB | Ives |
Comments
Comment #1
joseph11 CreditAttribution: joseph11 commentedChanging version
Comment #2
HansKuiters CreditAttribution: HansKuiters commentedI would also like this feature. In my case I use a views panel to list some content in the simplenews template. I only want content in that list that has not been sent before. I've created a flag to mark that content and I need to set that flag after the last mail has been sent.
Comment #3
steveoriolme, I would like publish the simplenews node only when the first send start to beginning...
Comment #4
Ives CreditAttribution: Ives commentedI needed a newsletter-sent-event to populate a sent-date field.
The patch adds a rules-event that is triggered when the send status changes, with arguments for node and status.