sh_cpl/src/cpl/mailing/email_client_abc.py

18 lines
357 B
Python
Raw Normal View History

2020-12-20 14:49:43 +01:00
from abc import abstractmethod
2021-03-03 10:47:52 +01:00
from cpl.dependency_injection.service_abc import ServiceABC
from cpl.mailing.email import EMail
2020-12-20 14:49:43 +01:00
2021-03-03 10:47:52 +01:00
class EMailClientABC(ServiceABC):
2020-12-20 14:49:43 +01:00
@abstractmethod
def __init__(self):
2021-03-03 10:47:52 +01:00
ServiceABC.__init__(self)
2020-12-20 14:49:43 +01:00
@abstractmethod
def connect(self): pass
@abstractmethod
def send_mail(self, email: EMail): pass