Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
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
Level 10

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
Level 10

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