@@ -238,7 +238,7 @@ def send_mail_on_publish(recid, revision,
238
238
template = "mail/analysis_published_new.html"
239
239
240
240
send_mail_on_hypernews (recipients , subject , message )
241
- send_mail_on_jira (recid , host_url , recipients , message , subject , template )
241
+ send_mail_on_jira (recid , host_url , recipients , message , subject )
242
242
243
243
current_app .logger .info (
244
244
f'Publish mail: { recid } - { ", " .join (recipients )} .' )
@@ -287,16 +287,18 @@ def send_mail_on_hypernews(recipients, subject, message):
287
287
)
288
288
289
289
290
- def send_mail_on_jira (recid , host_url , recipients , message , subject , template ):
290
+ def send_mail_on_jira (recid , host_url , recipients , message , subject ):
291
291
# only JIRA ML mail
292
292
conveners_ml_jira_mail = current_app .config .get ("CONVENERS_ML_JIRA_MAIL" )
293
293
294
294
if conveners_ml_jira_mail in recipients :
295
+ template = "mail/analysis_plain_text.html"
295
296
recipients .remove (conveners_ml_jira_mail )
296
297
297
298
create_and_send .delay (
298
299
template ,
299
300
dict (recid = recid , url = host_url , message = message ),
300
301
subject ,
301
- [conveners_ml_jira_mail ]
302
+ [conveners_ml_jira_mail ],
303
+ type = "plain"
302
304
)
0 commit comments