Mail comment not working when sending email using "Send Message with Message notify" action.
Not inserting ((( Reply ABOVE this LINE to POST a COMMENT ))) in body
Please help.

CommentFileSizeAuthor
#3 messagetype.png2.76 KBpaulwdru
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

birchy82’s picture

Just curious if you figured this out?

Exploratus’s picture

Same here

paulwdru’s picture

FileSize
2.76 KB

It works for me.

1.) Under the message type, tick the Allow users to reply via email
ty

2.) Mailcomment only works with message types with fields to be machine-named as field_node_ref and field_comment_ref as stated in the install.txt . It's somehow hard-coded as I read through the coding.

maxplus’s picture

@paulwdru

Thanks, after adding field_node_ref and field_comment_ref to my message type, this is working out for me.
=> now I also discovered the INSTALL.txt inside the mailcomment_message_notify subfolder with this content:

This module allows Mail Comment to act on messages sent by Message Notify.

By default, this module will NOT work on any message types. You must specifically allow it to work on each message type. To do this, edit a message type, and check the box that allows replies by email.

Note that this module assumes that messages for comments have a 'field_comment_ref' field, and messages for nodes have a 'field_node_ref' field.

J-lock’s picture

I was having issues with this but I finally got it working. Just to add on to the previous posts as they pointed in the right direction.

When creating the rule what worked for me was

1. Create a rule that fires on new comment save

2. Add Action to create new entity, of type message with your message type selected.

3. Add Action to set data value, first data selector choose entity-created:field-comment-ref, hit next, on the next screen value data selector use just comment as the value.

4. Now add the action to send message with message notify and for the selector for message use entity-created.

This got everything working for me.

bluegeek9’s picture

Status: Active » Closed (outdated)