Skip to content

alalvarez29/SMTPClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SMTP Client implementation with Python

The documentation of this mini-project contain have the following parts:

  • The modules imported from Python
  • SMTP connection secured by SSL (Secure Sockets Layer)
  • Attachment of a plain-text and a PDF file to send
  • Disclaimer
  • References

Modules

  • smtplib
  • ssl
  • email

SMTP connection secured by SSL (Secure Sockets Layer)

To send a mail using the Simple Mail Transfer Protocol we need to use the Python module called smtplib. After that we creates a SSL connection with the SMTP Gmail Server importing the ssl module and using SMTP_SSL().

Attachment of a plain-text and a PDF file to send

This project uses MIME messages, which allow us to send plait-text versions of a email and also HTML versions.

Disclaimer

If you are using SMTP Google Server, from your sender mail you need to enable the Two Auth Factor and create an app password because you can experiment the following error:

smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted)

For more information and details you can check the following tutorial: Solution to SMTPAuth Gmail

References

About

SMTP Client with Python using a SSL connection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages