Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to send e-mail when publishing a page?

Avatar

Level 3

Users of my site should be able to subscribe to a news mailing list. When publishing pages based on a news page template, a mail should automatically be sent to users on the news mailing list. The mail should contain a snippet / teaser of the news page published.

How would I go about implementing the above using AEM?

Use the existing mailing list (subscribe / unsubscribe) functionality and add a custom workflow to handle the sending of mail when publishing a page based on the news template?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Workflows is the better approach in this use case. Check in this example link: https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

Thanks,
Ratna Kumar.

View solution in original post

3 Replies

Avatar

Level 10

Using a Workflow for this use case is the correct way to proceed. The workflow will publish the page and then send email messages to a subscribed list. 

Avatar

Correct answer by
Community Advisor

Hi,

Workflows is the better approach in this use case. Check in this example link: https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

Thanks,
Ratna Kumar.

Avatar

Level 10
You can implement your custom event handler which will listen for a activation of a pages. In that handler you can write you code to send snippet n email. Here is a example:- https://helpx.adobe.com/experience-manager/using/events.html