Report post_run sends multiple emails #10818
Unanswered
msmith8fti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am hoping someone can help me or has had a similar problem. I have a very basic report that when it runs, I call a post_run(self) to send an email with the results. Post run looks like this:
def post_run(self):
send_mail('Sites approaching Termination Date','Location is approaching contract end date and may be subject to auto-renew\n\nDetails: %s'%(self._results),'[email protected]',['[email protected]'])
Every time I run this report, it sends two emails to the configured email. The report runs without issue and shows expected results. I have checked the obvious and made sure there wasn't a local SMTP server running with a relay host.
Would appreciate if anyone has any insights or has seen this issue before.
Beta Was this translation helpful? Give feedback.
All reactions