Make email notifications also provide content of node?
mattengland - July 5, 2005 - 20:47
| Project: | Subscriptions |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
How can I get email notifications to also provide the content of node...so that a susscriber need not visit the website when they get the notification email?
(This is particularly helpful on my Blackberry subscribers.)
If no feature exists today, can someone provide me recommendations on how and where to make my own changes to support this?
-Matt

#1
This feature doesn't exist for the moment, but it shouldn't be so difficult to set it up.
Look at the function
_subscriptions_mailvarsand make your changes there to modify body, then you can put the whole node or only the teaser (if a ne node is added) or put the comment.I'm not sure what kind of functions use, but I think that you should investigate around
node_load. Also don't forget to strip HTML tags in case you sent plain text mails.It was also a feature request, see subscribe options: notification only, or full message
#2
Is there a default/built-in/canonical way to strip html in drupal? Or do I need to use something like the html2text module?
#3
http://drupal.org/node/19499