Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Send Email -Workflow

Avatar

Level 10

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

24 Replies

Avatar

Level 10

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

Avatar

Employee

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.

Avatar

Employee

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

Avatar

Level 10

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.