Hi,
I'm having troubles in formatting the body of my e-mail I'm trying to send using Scriptrunner "Send custom e-mail" via post-function. I'm trying to get at least new lines but none of the ways work. This is my script in email template:
Dear Sirs,
First <% print "\n" %>
Second <% print "\\n" %>
Third <% out <<"\n" %>
Fourth <% out <<"\\n" %>
Fifth \n
Sixth \\n
This is the body, and should be a new line before and after
Regards,
<% out << issue.reporter?.displayName %>
But instead of any formatted email I get a single line:
"Dear Sirs, First Second Third Fourth \n Fifth Sixth \n This is the body, and should be a new line before and after Regards, John Smith"
Any help?
Thank you in advance
Hi Szymon
You can select an HTML template and then for every new line you could use <br>.
Also (unless you are in a very old version of the plugin) you could use the condition field and the config map to push the reporter name and then use it in the email template.
So in your case you could have something like
Thanos,
Works perfect! Thank you.
How could I miss such obvious way :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.