smtp¶
- class pydantic_extra.smtp.MailServer¶
Bases:
pydantic.BaseModelConfiguration for connecting to an SMTP server
- from_addr: str¶
Default
smtp_login.
- connect() smtplib.SMTP¶
Returns an object
smtplib.SMTPwith the specified address
- login(smtp: smtplib.SMTP) None¶
Performs authorization for SMTP connection