Skip to main content

Setting up AEM Mail Service and Account Creation API

article banner

This document outlines steps to setup an SMTP details in AEM along with how to register a new user (non-logged in) in AEM using AccountManagementService API.

To enable the account management service in AEM we have to follow the below Steps

Configure Day CQ Mail Service

1. One can use corporate SMTP details however for simplicity we are configuring Gmail account here and for password (we have to generate app password) Please refer the url to validate the 2-verification step and generate the password.

 

In case you face an issue see this blog - java - JavaMail Exception javax.mail.AuthenticationFailedException 534-5.7.9 Application-specific password required

Note: we need to use the steps below to create generate the app password.

  1. Go to your account settings (https://myaccount.google.com/) -->> Security -->> Under signing in to Google -->> App Password -->> Enter your credentials to login to your account -->> Select 'App' and 'Device' -->> Generate.
  2. Copy and paste the password somewhere.
  3. You can use this password instead of your account password.

Setup an AEM 6.5 SP-12 AEM instance and start the AEM service.

2. Go to system console Adobe Experience Manager Web Console - Configuration

3. Create Request Account Node in /etc/security/accountmgr/jcr:content

4. Give read permission for /content to account-manager in http://localhost:4502/useradmin (classic UI, one can use touch based as well)



5. Create emailConfirmation Component in /apps and insert the component in confirmation page, so that when user was registered the servlet will send the mail with this page url.

Follow the below Steps:

User fills the Account Creation form (create an AEM sign up page) and submits it.

This Request received by the servlet and the servlet calls the requestAccount() method of AccountManagementService API.

Highlighted property shows that the user is in disable state

User gets the Account Verification Email

  • The confirmation link page will be having a component named “emailConfirmation".The emailConfirmation.html contains.
  • User will click on verification link to enable the account in AEM.

User become Enable After Verifying the link

  • Confirmation mail will be sent to user after verification.

User gets email for Account Creation

Nitin Seth
Nitin Seth

Nitin is an accomplished Adobe Digital Professional having extensive experience in Customer Success & Centricity. He is a Digital Strategic & Transformation expert whose focus is to transform customer Digital Experience , As an IT Leader he ensures an interactive and collaborative way of digitizing the communication across channels. He has worked as a trusted advisor for the board level executives and stakeholders. He is in managing and delivering high-end solutions across geographies and industries for business partners and stake holders. He is having mindset with blend of business and sales experience to up-sell and cross-sell opportunities through the engagement to generate pipelines.

Related reads.

WHAT WE DO.

Explore our wide gamut of digital transformation capabilities and our work across industries.

Explore