Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey folks,
I tried to improve the mail notification myself, but it did not work at all!
I'd like to have:
- the subject telling me, if the new message is in my private guestbook or in the site guestbook
- an introduction in the mail body, telling me, that the following message is new in my guestbook
- the introduction in the mail body telling me, who left this message
- a link, directling to the site / user guestbook
As I'm not able, to provide code, I can offer my help with the German translation of the subject and the mail body.
Regards,
forschi
Comments
Comment #1
andrenoronha CreditAttribution: andrenoronha commentedit would be good if we could customize the email with the help of tokens like other email notifications...
well, i wonder: where in the code of guestbook module is the intruction to send this email?
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedHave a look at guestbook.module around line 477
Comment #3
andrenoronha CreditAttribution: andrenoronha commentedI got what I wanted altering guestbook.module
on line 492 I took off the message:
on line 521 I added the user variable
and on line 523 I changed $message['body'] to send in the email what I wanted:
Now I ask: is there a way to do this without altering the code?
Comment #4
ajayg CreditAttribution: ajayg commentedComment #5
rakekniven CreditAttribution: rakekniven commentedHello,
I used 6.x 2.x dev for my mods.
Thanks a.luiz.n for your work.
I just modified "body" line in function guestbook_mail:
It works pretty well for me.
On my site there is only a global website guestbook.
Would be happy to see something commited to dev.
Thumbs up for all drupal guys!