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

[BUG] Email notification is not received if multiple recipients are added in the to list #112

Open
snehachoppavarapu opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@snehachoppavarapu
Copy link

Describe the bug
In the user_config.se_notifications_email_to_other_mail_id: '[email protected], [email protected]', i am providing multiple recipients but only the first recipient is receiving the email. If i change as list getting error
SparkExpectationsEmailException: error occurred while sending email notification from spark expectations project {"['[email protected]', '[email protected]']": (553, b"5.1.3 <['[email protected]', '[email protected]']>... Invalid route address")}
File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.11/site-packages/spark_expectations/notifications/plugins/email.py:53, in SparkExpectationsEmailPluginImpl.send_notification(self, _context, _config_args)
52 text = msg.as_string()
---> 53 server.sendmail(_context.get_mail_from, _context.get_to_mail, text)
54 server.quit()

To Reproduce
Steps to reproduce the behavior:

  1. Go to se_user_conf provide user_config.se_notifications_email_to_other_mail_id: '[email protected], [email protected]' and run any dataquality rule.
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    SparkExpectationsEmailException: error occurred while sending email notification from spark expectations project {"['[email protected]', '[email protected]']": (553, b"5.1.3 <['[email protected]', '[email protected]']>... Invalid route address")}
    File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.11/site-packages/spark_expectations/notifications/plugins/email.py:53, in SparkExpectationsEmailPluginImpl.send_notification(self, _context, _config_args)
    52 text = msg.as_string()
    ---> 53 server.sendmail(_context.get_mail_from, _context.get_to_mail, text)
    54 server.quit()

Expected behavior
Multiple recipients should receive email

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]

  • Browser [e.g. chrome, safari]
    se_error

  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@snehachoppavarapu snehachoppavarapu added the bug Something isn't working label Oct 24, 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

1 participant