cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a rich text email via javascript

amarg
Champ in-the-making
Champ in-the-making
Hi Experts,

I am an enterprise user of version 3.3
Recently I have been trying to send rich text email from Alfresco without success.
I found a copy of sample script at:

http://wiki.alfresco.com/wiki/WorkflowAdministration

var mail = actions.create("mail");mail.parameters.to = initiator.properties["cm:email"];mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;mail.parameters.from = bpm_assignee.properties["cm:email"];//mail.parameters.text = "It's done";mail.parameters.template = ………mail.execute(bpm_package);‍‍‍‍‍‍‍‍‍
I have modified the code and I am using a template rather than adding everything inside the text parameter as I had other issues that could not be resolved when I dumped the contents inside the text parameter.
My template file contains a HTML content:

<HTML><BODY><TABLE>…..</TABLE></BODY></HTML>‍‍‍

Despite all these steps, I have not been able to receive rich text emails. I receive plain text emails with the HTML code exactly as it is.

Is there anyway I can send rich text emails from alfresco?
2 REPLIES 2

dc_noze
Champ in-the-making
Champ in-the-making
Hi,
i'm sorry but with alfresco mail action you can just send plain text email. To send html email or add attachments you need an extension.
Here you can find some partial solutions http://forums.alfresco.com/fr/viewtopic.php?f=11&t=940 and http://forums.alfresco.com/en/viewtopic.php?f=4&t=26559 .
I hope this can help.

amarg
Champ in-the-making
Champ in-the-making
Thank you Daniele! I hope HTML emails are integrated as a part of future Alfresco releases.