If user A posts on user B's wall, user B recieves an email. A feature like this worked in v6.2. I believe this can be achieved through Rules.

For example if in triggered rules on EVENT select 'User saves a status' IF 'status was posted to own profile' then for DO 'send a mail to user' then select recipient of the status to be the recipient of the email.

However the last option 'send a mail to user' is not visible in 6.x.3.x-dev and it was in 6.x.3.0-beta. Although there was no option of the email recipient being the recipient of the status.

Similar to thread http://drupal.org/node/1079000#comment-4205566

Comments

erik2e’s picture

Priority: Critical » Normal
Status: Active » Fixed

Hi mastermtg,

You can use an action to load a user account from the ID you have in the status object.

Then on the next action, you have the ability to create a send mail to user action, and you have either the sender or recipient account (or both) depending on the account you loaded just before. This works fine for me like this.

I think the "send a mail to user" you had in 3.0-beta was due to the bug fixed in this issue http://drupal.org/node/1079000. Now you have to explicitely load the user account, as statuses can be posted on something else than users.

The rule triggered on "User saves a status" could be :
Condition :
- If NOT 'Status was posted to own profile' (the current user posts a status to someone's profile)
Actions :
- Load a user account with User ID set to token [status:recipient-id], named 'recipient'
- Send a mail to user, and use the now available 'recipient'. You have tokens from the status and the recipient user accounts.

You can also load the sender user account this way, and I think I may need to add a check for the [status:recipient-type-name] being user, and not a node or something else.

NodeOne company made some brilliant tutorials on basic and advances Rules usage :

http://nodeone.se/blogg/learn-rules-with-nodeone-part-1-overview

Hope this helps.

mastermtg’s picture

Hey erik2e,

Thanks your solution worked beautifuly! It was a lifesaver.

Thanks!

erik2e’s picture

Status: Fixed » Closed (fixed)

Glad to hear that was useful :)