Coverage for CIResults/email.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-19 09:20 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-19 09:20 +0000
1from django.conf import settings
2from django.core.mail import send_mail
5class Email:
6 def __init__(self, subject, message, to):
7 self.subject = subject.strip()
8 self.message = message
9 self.to = to
11 def send(self):
12 send_mail(self.subject, self.message, settings.EMAIL_ADDRESS, self.to)