Tuesday 20 December 2016

Thank you AEM Community members

As 2016 draws to a close (Community team will be off from DEC 22-Jan 3) - I want to thank all AEM community members for your great community participation in our internal AEM Community and the external ones like all the FB groups.
I would like to thank members like Lo Ki and Ratna Kumar Kotla and many others for helping drive AEM HELPX content and Ask the AEM Commuity Experts.
I am very happy to see what AEM community members like Ratna Kumar Kotla did with his AEM community rewards. He was able to put it towards this awesome device.





Lo Ki won AEM community of the year and will be getting an awesome award as well.
I am looking forward to 2017 and continue working with AEM Community members around the world, In the mean time - i encourage everyone to sign up for the immerse contest --



Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.


Twitter: Follow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.


Tuesday 13 December 2016

Creating Adobe Experience Manager HTL Components that send Email messages based on templates

You can create an Adobe Experience Manager (AEM) HTML Template Language (HTL) component that lets web site visitors populate a form and submit the data. The OSGi bundle contains a Sling  Servlet that sends an email message to email recipients. The email message is based on an AEM email template that is located in the AEM JCR repository.

An email template is simply a text file located in the AEM JCR. For example, consider the following template.

<html> 

<body>
<p> 
<b>Time:</b> ${time}
Forum URL: ${host.prefix}${forum.url}
</p>
A new reply was posted by ${modifiedBy.fullname} for CQ Forum topic "${topic.subject}".
-------------------------------------------------------------------------------------
${post.message} 
-------------------------------------------------------------------------------------
This is an automatically generated message. Please do not reply. 
Please follow this link to view all replies to this topic.
${host.prefix}${topic.url}
</body>
</html>


Email templates are located at the following JCR location: 

/etc/notification/email


An email template is a JCR node of type nt:file. Each node has a text file as shown in the following illustration. 



This development article discusses how to programmatically send an AEM email message that is based on a template. Futhermore, it also discusses how to populate the variables in the template with values. To send email messages that are based on AEM email templates, you use the MessageGatewayService API.  


Video



Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.


Twitter: Follow the Digital Marketing Customer Care team on Twitter @AdobeExpCare.