Highlighted

AEM Communities - Notification Email Address

Premkarthic-7WP

10-07-2019

Hi,

We are having multiple communities sites with multiple domain residing on same server, is there any way to configure community site specific email from address for communities based email notifications, Any pointer to achieve this will help us lot.

Thanks in advance !

Configuring Email

Thanks

Prem

Replies

Highlighted

Ravi_Pampana

MVP

10-07-2019

Hi,

You can create a configuration with list of different from address and read that in the java class using HtmlEmail

import org.apache.commons.mail.HtmlEmail;

You can see examples in below link

https://www.programcreek.com/java-api-examples/?class=org.apache.commons.mail.Email&method=setHostNa...

Using above approach based on the site, you can have different from, to subject etc

email.setFrom(emailData.getAddressFrom());

Hope this helps !

Highlighted

Premkarthic-7WP

10-07-2019

Ravi,

Thanks for your comments, we are aware that we can use html email service, the question here is with respect to communities as it uses the "AEM Communities Email Reply Configuration - Factory configuration" with name points to "subscriptions-email" for configuring the from address and other communities related attributes for email notifications.

The problem here is in the back end adobe code they hard coded with the value "subscriptions-email" and to override this, it requires huge customization. We are looking for any options that help us us to achieve the functionality with minimal changes at configuration level, that we might missing.