Send Email -Workflow | Community
Skip to main content
New Participant
October 16, 2015
Solved

Send Email -Workflow

  • October 16, 2015
  • 24 replies
  • 6211 views

Hello,

I would like to send email picking the template from AEM, and also dynamically adding values to the template using the workflow code. I would like to construct the "TO" list in an email dynamically, picking it up from a group of users(group A), and would like to insert a line, "URL" dynamically in the email template .txt file.

Please let me know.

Regards,

Nicole

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

The problem is that you are embedding commons-email. Don't do this. Your bundle needs to import org.apache.commons. 

24 replies

New Participant
October 16, 2015

Managed to sort it out, thanks justin, your feedback was much helpful.

Employee
October 16, 2015

If you look at the OSGi console, you'll see that the bundle included in the product exports package version 1.2, which is outside the import range you have there. Since this package is used as part of the API of the mailer service, you should use the same version.

Employee
October 16, 2015

Port 465 is where Google exposes their SMTP+SSL endpoint. Port 587 is for STARTTLS.

See https://support.google.com/mail/answer/13287?hl=en

New Participant
October 16, 2015

justin_at_adobe wrote...

Port 465 is where Google exposes their SMTP+SSL endpoint. Port 587 is for STARTTLS.

See https://support.google.com/mail/answer/13287?hl=en

 

I believe 465 should have worked but in vain, il keep trying, might be firewall.