Questions and Answers

How do I collect points?

  • +4
    Chosen as best answer
  • +1
    Posted answer
  • +1
    Posted question
  • +1
    Thumb up
  • -1
    Thumb down
10

by SunFlower in Coding about August 22, 2011 open - report

How to include text of message in email notification?

When you receive a message in SE4 from other user you get an email, but it contains no message text. I know it may be good for community, because it makes person login. But it’s not very user friendly. If user wants to reply - he or she will login anyway.

Answers: 2  •  Score 0  •  Views: 1574

2 Answers
Browse by
  • 1

    by Dave P about October 28, 2011

    You can try add this code if($type == 'commented'){ $comment = ($object->comments()->getAllComments()); $comment->seek($comment->count() - 1); $defaultParams['comment_body'] = $comment->current()->body; } by the following path application/modules/Activity/Model/DbTable/Notifications.php Then in the mail template, you can add the comment to the email using [comment_body].
    • Score: 0
  • 32

    by Sophy Reid about August 30, 2011

    I believe this should be possible because if someone post on a forum thread you posted or subscribed, the email you receive contain the post. I think this should be the same across the site.
    • Score: 0
You must login to post an answer.