Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

AEM Communities - Notification Email Address

Avatar

Level 4

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

2 Replies

Avatar

Community Advisor

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 !

Avatar

Level 4

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.