Reputation: 1351
Currently I am using alfresco 3.4d community version. I want to change site invitation email template as currently its not supporting HTML tag.
I want to use HTML tag in .ftl
file for site invitation email.
Is there any way to achieve the same?
Upvotes: 1
Views: 471
Reputation: 3175
@Alch3mi5t:Alfresco 3.4d does not supports html content inside mail.
Follow below links for this.
http://krutikjayswal.blogspot.in/2015/07/html-mail-action-in-alfresco34d.html
http://krutikjayswal.blogspot.in/2015/07/html-mail-content-inside-site.html
Upvotes: 2
Reputation: 1298
So,
first of all, .ftl
IS a HTML
based language.
You must use an .ftl
file and you can put your custom HTML
code.
The path you want to check in Alfresco is:
Company Home > Data Dictionary> Email Templates>
There are a bunch of folders, I guess you want templates inside the folder invite
.
In there you'll find all the Freemarker templates used by Alfresco for email notifications (there are different files in it as they're used dynamically for internationalization purposes and for different kind of notifications). The one that you're asking for is invite-email.html.ftl
. Just copy it in the same folder, rename it (eg. invite-email.html.ftl.backup
), and do apply your changes.
You'll also find a notify_user_email.ftl.sample
inside the Notify Email Templates
that you can use for testing if you want to see how the notification email looks (just rename it to notify_user_email.ftl
and rename the original to something else, eg. notify_user_email.ftl.backup
). Mind by default the notification email will be send overnight so maybe not the best one to test :)
That should help you.
Upvotes: 0