Coverage for CIResults/email.py: 100%

9 statements  

« 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 

3 

4 

5class Email: 

6 def __init__(self, subject, message, to): 

7 self.subject = subject.strip() 

8 self.message = message 

9 self.to = to 

10 

11 def send(self): 

12 send_mail(self.subject, self.message, settings.EMAIL_ADDRESS, self.to)