Yes I use version 3.1.5, in the post function like this
string to =userEmailAddress(customfield_11262);
string subject="Le véhicule de "+customfield_11201+" "+customfield_11200+" sera livré";
this template.tpl file is in C:\Atlassian-Jira\Application Data\JIRA\kepler\emails\template.tpl
and in sil configuration in Email Templates Directory I put emails.
thank you in advance.
In 3.1.5 there were two functions to sendEmail() and sendHtmlEmail(). There is only one function since 4.0. Try the sendHtmlEmail() function. Also, in your user profile you can specify if you want to receive html or text emails. Make sure you have selected html.
Let me know if those help.
I installed JIRA 7.0.10 and installed PS version 3.1.5 and I was able to receive emails without seeing the HTML. The fact that your template works on another version means there probably isn't an issue with the template. We have checked the only place I know of (user profile) that controls HTML/Text emails. You have tried using the sendHtmlEmail() function... I don't know what else to try.
Do you see anything in the logs that indicates there was a problem with sending the email?
Can you try removing the DOCTYPE tag and the <meta> tag completely?
In the template use a custom replacement variable like $cDate$.
Then, before calling the sendEmail() function create your formatted custom date variable for cDate. See example below where I am formatting the created date into the cDate variable.
string format = "d/MMM/yyyy";
string cDate = formatDate(created, format);
sendEmail(from, to, cc, "Your issue:" + key, "testTemplate.tpl", "", key);
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG