AnsweredAssumed Answered

Sending a rich text email via javascript

Question asked by amarg on Oct 20, 2010
Latest reply on Oct 25, 2010 by amarg
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?

Outcomes