Download & Extend

Is there a way to control the message that goes out in the email?

Project:Bulk State Notify
Version:6.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This module works great. I use it to send out emails when some pages have a certain state. Is there a way to modify the message the person gets in the email it sends? Each page has a special serial number that goes with it and instead of just a list of pages that have this state, they also want to list the serial number with each page. Is this possible?

Becky

Comments

#1

I'm glad to hear someone's getting some use out of this!

Hm.

That sounds like a lovely idea for a patch/fix, but for now there's two things I can see.

1) Hack the module - change bulk_state_notify_mail to do what you need. It's not optimal, but it's the easiest thing to change, I suspect.
2) implement hook_mail_alter and see if you can change the message before it's sent out.

Sorry - that didn't occur to me when I built this.

#2

No problem, thanks for the quick feedback! I really like this module.

I think what I want to do is add a token to the page, that is based on the cck field that holds the number. I am not sure how to hook the token module and this module up though. I'm going to try and find examples online but my php skills are pretty basic at the moment.

#3

I think i will try doing both of your suggestions and just see which one works first.