Skip to content

Commit 9d862c6

Browse files
committed
HTML reports instead of text for mail
1 parent 4946b93 commit 9d862c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,11 +2926,11 @@ workflow.onComplete {
29262926
log.info "[nf-core/eager] Sent summary e-mail to $email_address (sendmail)"
29272927
} catch (all) {
29282928
// Catch failures and try with plaintext
2929-
def mail_cmd = [ 'mail', '-s', subject, '--content-type=text', email_address ]
2929+
def mail_cmd = [ 'mail', '-s', subject, '--content-type=text/html', email_address ]
29302930
if ( mqc_report.size() <= params.max_multiqc_email_size.toBytes() ) {
29312931
mail_cmd += [ '-A', mqc_report ]
29322932
}
2933-
mail_cmd.execute() << email_txt
2933+
mail_cmd.execute() << email_html
29342934
log.info "[nf-core/eager] Sent summary e-mail to $email_address (mail)"
29352935
}
29362936
}

0 commit comments

Comments
 (0)