Drupal - Email Notifications
In this chapter we will learn how to send Email Notifications to the owner or creater, when a new comment is posted to the article. Email Notification is an alerts that a new mail has been arrived in your mail box.
Following are the simple steps to notify email in Drupal.
Step (1): Click on Configuration menu on Drupal.
Step (2): Next, click on Rules link in the WORKFLOW section as shown below.
Step (3): Click on Add new rule link.
Step (4): Next, the Rules page will get display as shown below.
It contain fields such as.
Name: Enter the name.
Tags: Enter the tags
React on Event: Select the event where the notification should arrive.
Restrict by Type: Select the type where you need to filter the values or events.
After filling all the fields, click on Save button to save the rule.
Step (5): Next, Editing reaction rule "Comment Notification" page gets display. Click on Add action link in Actions section as shown below.
Step (6): Add a new action page gets displayed. Select Send mail option in System section from the drop down menu.
Step (7): Next, a page will get display as shown below.
Below we have mentioned the details about the fields present in above screen.
Data selector: Select comment->node->author->mail from the dropdown menu.
Subject: Enter the mail subject in the Value text box.
REPLACEMENT PATTERNS: This data selection input mode may help you find more complex replacement patterns. You can select the TOKEN type and replace it as per the demand.
MESSAGE: Enter mail's message body content in the message Value text box.
FROM: It displays mail's from address to the receiver.
LANGUAGE: It specifies the language used for getting the mail message and subject. You can choose the language from the dropdown menu.
Next, click on Save button to save the notification.
Step (8): You will see the following screen, after you save your notification.