How to send e-mail when publishing a page? | Community
Skip to main content
AEMing
Level 2
October 16, 2015
Solved

How to send e-mail when publishing a page?

  • October 16, 2015
  • 3 replies
  • 1637 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ratna_Kumar

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.

3 replies

smacdonald2008
Level 10
October 16, 2015

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. 

Ratna_Kumar
Ratna_KumarAccepted solution
Level 10
October 16, 2015

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.

edubey
Level 10
October 16, 2015
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