Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Workflow for sending an email

imadullakhan
Level 3
Level 3

Hi @All,

 

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

1 Accepted Solution
kautuk_sahni
Correct answer by
Community Manager
Community Manager
8 Replies
kautuk_sahni
Correct answer by
Community Manager
Community Manager
BrianKasingli
Community Advisor
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/

 

imadullakhan
Level 3
Level 3
Hi I followed the procedure but my email status got Aborted!
BrianKasingli
Community Advisor
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/

Andrew_Khoury
Employee
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...
Veena_Vikram
Community Advisor
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.