Configuring Email configuring-email

CAUTION
AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.

AEM Communities uses email for

By default, the email feature is not functional as it requires specification of an SMTP server and SMTP user.

CAUTION
Email for notifications and subscriptions must be configured only on the primary publisher.

Default Mail Service Configuration default-mail-service-configuration

The default mail service is required for both notifications and subscriptions.

This is based on the documentation for Configuring Email Notification, but with a difference in that the field "From" address is not required and should be left empty.

For example (filled in with values for illustrative purposes only):

chlimage_1-98

  • SMTP server host name: (required) The SMTP server to use.

  • SMTP server port (required) The SMTP server port must be 25 or higher.

  • SMTP user: (required) The SMTP user.

  • SMTP password: (required) The SMTP user’s password.

  • “From” address: Leave empty

  • SMTP use SSL: If checked, will send secure email. Ensure the port is set to 465 or as required for SMTP server.

  • Debug email: If checked, enables logging of SMTP server interactions.

AEM Communities Email Configuration aem-communities-email-configuration

Once the default mail service is configured, the two existing instances of the AEM Communities Email Reply Configuration OSGi config, included in the release, become functional.

Only the instance for subscriptions needs to be further configured when allowing reply by email.

  1. [email](#configuration-for-notifications) instance

    for notifications, which does not support reply email, and should not be altered

  2. [subscriptions-email](#configuration-for-subscriptions) instance

    requires configuration to fully enable creating post from reply email

To reach the Communities email configuration instances:

chlimage_1-99

Configuration for Notifications configuration-for-notifications

The instance of AEM Communities Email Reply Configuration OSGi config with the Name email is for the notifications feature. This feature does not include email reply.

This configuration should not be altered.

  • Locate the AEM Communities Email Reply Configuration

  • Select the edit icon

  • Verify the Name is email

  • Verify Create post from reply email is unchecked

chlimage_1-100

Configuration for Subscriptions configuration-for-subscriptions

For Communities subscriptions, it is possible to enable or disable the ability for a member to post content by replying to an email.

  • Locate the AEM Communities Email Reply Configuration
  • Select the edit icon
  • Verify the Name is subscriptions-email

chlimage_1-101

  • Name : (required) subscriptions-email. Do Not Edit.

  • Create post from reply email: If checked, recipient of subscription email may post content by sending a reply. Default is checked.

  • Add tracked id to header: Default is Reply-To.

  • Maximum length of Subject: If tracker id is added to subject line, this is the maximum length of subject, excluding tracked id, after which it will be trimmed. Note that this should be as small as possible to avoid tracked id information from being lost. Default is 200.

  • Email “From” address: (required) Address that notification email would be delivered from. Likely the same SMTP user specified for the default mail service. Default is no-reply@example.com.

  • Reply-to-Delimiter: If tracker id is added to Reply-to header, this delimiter will be used. Default is + (plus sign).

  • Tracker Id prefix in subject: If tracker id is added to subject line, this prefix will be used. Default is post#.

  • Tracker id prefix in message body: If tracker id is added to message body, this prefix will be used. Default is Please do not remove this:.

  • Email as HTML: If checked, Content-Type of email will be set as "text/html;charset=utf-8". Default is checked.

  • Default user name: This name will be used for no name users. Default is no-reply@example.com.

  • Templates root path: The email is built using template stored at this root path. Default is /etc/community/templates/subscriptions-email.

Configure Polling Importer configure-polling-importer

In order for the email to be brought into the repository, it is necessary to configure a polling importer and configure its properties in the repository manually.

Add New Polling Importer add-new-polling-importer

chlimage_1-102

  • Type: (required) Pull down to select POP3 (over SSL).

  • URL: (required) The outbound mail server. For example, pop.gmail.com:995/INBOX?username=community-emailgmail.com&password=****

  • Import to Path*: (required) Set to /content/usergenerated/mailFolder/postEmails
    by browsing to the postEmailsfolder and select OK

  • Update Interval in Seconds: (optional) The mail server configured for the default mail service may have requirements regarding the update interval value. For example, Gmail may require an interval of 300.

  • Login: (optional)

  • Password: (optional)

  • Select OK

Adjust Protocol for New Polling Importer adjust-protocol-for-new-polling-importer

Once the new polling configuration is saved, it is necessary to further modify properties of the subscription email importer in order to change the protocol from POP3 to emailreply

Using CRXDE Lite:

  • On the primary publisher

  • Signed in with administrator privileges

  • Browse to https://<server>:<port>/crx/de/index.jsp#/etc/importers/polling

  • Select the newly created configuration

  • Modify the following properties

    • feedType: replace pop3s with emailreply
    • source: replace source’s protocol pop3s:// with emailreply://

chlimage_1-103

The red triangles indicate the modified properties. Be sure to save the changes:

  • Select Save All
recommendation-more-help
5d37d7b0-a330-461b-814d-068612705ff6