...
To pass the language specify the 'sender', 'to', 'cc', 'subject', 'body' and finally the 'language', as a string (for instance "en", "fr", "en_US", "ro", etc.and so on). However, this is relevant only if you use templates as they support localization.
...
Parameter name | Type | Required | Description |
---|---|---|---|
from | string | no | the from From address |
to | string [] | yes | recipient Recipient list |
cc | string [] | no | CC'ed recipient list |
subject | string | yes | subjectSubject |
body_or_template | string | yes | message Message body, either direct or a template |
language | string | no | the language Language used to send the email(relevant only if you use templates) |
issue_key | string | no | the issue Issue to extract attachments from |
regex_array | string [] | if issue_key is present | name Name patterns to match the attachments from the issue |
wildcard_path_array | string [] | no | absolute Absolute paths containing wildcards for attaching files from disk |
...
For historical reasons, this routine may be named 'sendEmailFrom'.
Starting with version 4.0, 'sendHtmlEmail' was registered as an alias, too (there is no need for sendHtmlEmail anymore)
...
If SendEmailLanguage has the value receiver_language, testJiraUser1 is a JIRA Jira user having the defined language French and testJiraUser2 is a JIRA Jira user having the defined language German.
Code Block |
---|
string [] to = {"testJiraUser1", "testEmail@kepler.ro", "testJiraUser2"}; string [] cc = {"testEmail2@kepler.ro"}; sendEmail("testFrom@kepler.ro", to, cc, "testSubject.tpl", "testBody.tpl"); |
Result: It One email in French will be sent one email in French for to testJiraUser1, one email in German for testJiraUser2 and one email in the sender defined language for testEmail@kepler.ro(as to) and testEmail2@kepler.ro(as cc).
...
If SendEmailLanguage has the value receiver_language, testJiraUser1 is a JIRA Jira user having the defined language French and testJiraUser2 is a JIRA Jira user having the defined language German.
Code Block |
---|
string [] to = {"testJiraUser1", "testEmail@kepler.ro", "testJiraUser2"}; string [] cc = {"testEmail2@kepler.ro"}; sendEmail("testFrom@kepler.ro", to, cc, "testSubject.tpl", "testBody.tpl", "en_US"); |
...