Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email function is not working #642

Closed
HaidYi opened this issue Jul 25, 2024 · 1 comment
Closed

email function is not working #642

HaidYi opened this issue Jul 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@HaidYi
Copy link

HaidYi commented Jul 25, 2024

Description of the bug

The bug is that the email function is not working. No email is delivered. But the log shows the email is sent successfully.
Manually checked the code and find that

def max_multiqc_email_size = (params.containsKey('max_multiqc_email_size') ? params.max_multiqc_email_size : 0) as nextflow.util.MemoryUnit
def smail_fields           = [ email: email_address, subject: subject, email_txt: email_txt, email_html: email_html, projectDir: "${workflow.projectDir}", mqcFile: mqc_report, mqcMaxSize: max_multiqc_email_size.toBytes() ]
def sf                     = new File("${workflow.projectDir}/assets/sendmail_template.txt")
def sendmail_template      = engine.createTemplate(sf).make(smail_fields)
def sendmail_html          = sendmail_template.toString()

The sendmail_html has length as 0. And the intermediate file .sendmail_tmp.html is also empty.

Command used and terminal output

nextflow run . -profile test,singularity --outdir results --email XXX@gmail.com

Relevant files

No response

System information

Nextflow version: both 23.04.4 and 24.04
Hardware: HPC
Executor: local
Container engine: both conda and singularity
OS: red hat linux-8
nf-core/mag: 3.0.2

@HaidYi HaidYi added the bug Something isn't working label Jul 25, 2024
@jfy133
Copy link
Member

jfy133 commented Jul 27, 2024

This is an upstream bug in the nf-core template, PR has already been made by @HaidYi to address it there :)

@jfy133 jfy133 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants