You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
650 B
Python

import email
import smtplib
import typing
class Connection:
"""Handles connection to host"""
pass
class Attachment:
"""Encapsulates file attachment information"""
pass
class Message:
"""Encapsulates an email message"""
def __init__(self, subject: str,
recipients: typing.List[str]=None):
self.subject = subject
self.recipients = recipients or []
def add_recipient(self, recipient: str):
assert isinstance(recipient, str)
self.recipients.append(recipient)
class _MailMixin:
pass
class _Mail:
pass
class Mail:
"""Manages email messaging"""
pass