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

Stop sending mail if 'To' slice empty #2217

merged 1 commit into from Mar 2, 2018


Copy link

@pradeepbbl pradeepbbl commented Feb 6, 2018

We have noticed when a post action notification triggered bosun also trying to send mail with empty 'To' address

2018/02/05 12:15:30 error: notify.go:49: sending email: Must specify at least one From address and one To address
2018/02/05 12:17:30 error: notify.go:205: failed to send alert to [] Must specify at least one From address and one To address

This patch will validate the 'To' address slice length and stop trying sending mail if it's empty


@captncraig captncraig merged commit 7234211 into bosun-monitor:master Mar 2, 2018
1 check passed
@pradeepbbl pradeepbbl deleted the fix_bad_email branch Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants