Expand my Community achievements bar.

SOLVED

Workflow for sending an email

Avatar

Level 4

Hi @All,

 

Can anyone let me know how to create Workflow for sending an email.!

1 Accepted Solution

Avatar

Correct answer by
Administrator

 Please have a look at this helpx article: https://helpx.adobe.com/experience-manager/using/message_service_gateway_api_64.html

 

Also, have a look at this video by community member: https://www.aemquickstart.in/2016/08/creating-custom-aem-workflow-steps-that.html

 

HTH

-Kautuk 

 



Kautuk Sahni

View solution in original post

8 Replies

Avatar

Correct answer by
Administrator

 Please have a look at this helpx article: https://helpx.adobe.com/experience-manager/using/message_service_gateway_api_64.html

 

Also, have a look at this video by community member: https://www.aemquickstart.in/2016/08/creating-custom-aem-workflow-steps-that.html

 

HTH

-Kautuk 

 



Kautuk Sahni

Avatar

Community Advisor

@imadullakhan 

It would be as easy as adding a new workflow step within your workflow model. You can use the AEM out of the box "Day CQ Mail Service" to send out emails; make sure you Configure AEM to use a Mail Server.

Watch this 16 minutes youtube video to walk through step by step on how to send out an email within starting a workflow process - https://www.youtube.com/watch?v=F8fYQuZ8cwI

Tutorial - https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html

Click here for a tutorial for Mail Server Set up in AEM using GMail - https://adobeexplorers.com/2019/06/09/mail-server-set-up-in-aem-using-gmail/

 

Avatar

Level 4
Hi I followed the procedure but my email status got Aborted!

Avatar

Community Advisor

@imadullakhan , for testing purposes, try using a gmail account's SMTP settings (https://www.androidauthority.com/gmail-smtp-settings-801100/), also you would need to enable the "allow less secure" app configuration on the gmail account (https://support.google.com/accounts/answer/6010255?hl=en).

Also, tail the error log to review any errors, while using the Day CQ Mail Service; lots of good information are logged.

I had a problem with this in the past, and it seems like the email SMTP settings were not configured properly.

Click here for a tutorial for Mail Server Set up in AEM using GMail - https://adobeexplorers.com/2019/06/09/mail-server-set-up-in-aem-using-gmail/

Avatar

Employee
The likely reason the workflow would get aborted would be due to the payload being published/replicated, see this article: https://helpx.adobe.com/experience-manager/kb/workflow-is-getting-aborted-without-any-error-or-excep...

Avatar

Community Advisor

@imadullakhan Additionally you can use the Email API of ACS commons https://adobe-consulting-services.github.io/acs-aem-commons/features/e-mail/email-api/index.html for sending email via your workflow after following all the above answers to configure workflows.