3

I have a rule that will send me an email with the username of the person that creates a new comment or forum-topic. However, I would really like the URL and actual content to show up in the email. How can I accomplish this in that order of importance. Because right now I have to click on content on the site and look for the newest items to find the new content.

  • There are tokens available in Show Replacement patterns, you can use that for embedding them in the email. – Anoop Joseph Dec 1 '12 at 9:04
4
+50

Using rules, you can send the URL of the updated content as per the solution provided by @mohit_rocks, but I was not able to find a solution to send the content / body (full / teaser) in the mail, using rules.

If you wish to send the content of the body too, you'll need to take help of the Notify module.

Steps to enable the send mails with the content of forum/topic in mail with the help of notify module:

  1. Download and install notify module.
  2. Under admin > people > permissions, set give the permission of access notify to the user role you wish the mails to go to. Note: The users of these roles need to enable the notification to enable receiving of the mails. You can keep this role limited to admin and let admins decide who receives the mail by following next step.
  3. Go to admin > config > people >notify and enable notification for forum content type: snap2 If you set time less than the time of your cron run, still the mail will be sent on cron run.
  4. Go to user > uid > notify (replace uid with the the user id of the user). Admins can go to admin > people select edit against any user, and go to Notification settings tab and check the following options: snap1 You can check the Title + Body + Fields under Detailed settings section to send the values in fields as well.
  5. To check the list of users who will receive the mails, go to admin > config > people > notify > users:snap3
  6. That's it! Now the selected users should start receiving the notifications mails with content!

Note: If you have revisions enabled for the content type, and want to be notified when the content is edited, then check this feature request I've made at the module's issue queue. I've also created a patch for the same. If you have such requirement, then you can test the patch. If you post your findings on the issue, it'll be appreciated!

| improve this answer | |
  • 1
    Great !! Even i was also not aware with this module..Thanks – mohit_rocks Dec 11 '12 at 13:00
  • Sure..i will take a look – mohit_rocks Dec 11 '12 at 16:46
2

You can pass the parameters in the Rules module. See the screenshot below enter image description here

By adding these parameters you can send any content /latest added contetn to mail body. When you click on Edit link of send mail, you will find the follwoing page and you can send any content you want to send.

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.