Send Email step was introduced in AEM Forms 6.4. Using this step we can build business processes or workflow which will allow you to send emails with or without attachments. The following video walks through the steps for configuring the send email component.

As part of this article, we will walk you through the following use case

  1. A user fills out Time Off Request Form
  2. On form submission, AEM Workflow is triggered
  3. The AEM Workflow utilizes the Send Email component to send an email with the DoR as an attachment

 

Before you use Send Email step make sure you configure the Day CQ Mail Service from the configMgr screen as shown in the following screen shot(The url is http://localhost:4502/system/console/configMgr)

mailservice

As part of the assets associated with this article, You will get the following

  1. Adaptive Form which will trigger the workflow on submission
  2. Sample workflow that will send an email with DOR as its attachment
  3. OSGi bundle which creates the metadata properties

To get the sample running on your system, please do the following

  1. Configure Day CQ Mail Service
  2. Import the assets associated with this article using the package manager into CRX
  3. Launch the adaptive form. Fill in the required fields and submit.
  4. You should get an email with DocumentOfRecord as an attachment

Explore the workflow model

Take a look at the process step of the workflow. This process step will create metadata property names and sets its values from the submitted data.These values are then used by the send email component

Download

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy