Coders Packet

Sending Encrypted Email Using MIME and smtplib in Python

By MISHA DEY

Sending encrypted email in Python using smtplib,email package and MIME(Multipurpose Internet Mail Extensions).

PYTHON SCRIPT TO SEND EMAIL USING SMTP

Sending an encrypted email through python can be done using an email package ( library for managing email messages) and smtplib (more details are below).

LIBRARIES, MODULES, AND PACKAGES USED :

1.smtplib - SMTP Protocol Client :

smtplib a library or module that is used for the definition of the SMTP(Simple Mail Transfer Protocol) client session object, can be used to transfer data to any other system(with or without SMTP or ESMTP listener)

2. SSL - Secure Socket Layer :

Secure Socket Layer(SSL) ensures secure data transfer by proper encryption of data between the server and browser. 

3.Email Package:

Email Package is a library or module that is used for managing email messages(eg.MIME).

It has an encoders module to provide various encodings, which can be used by MIMEAudio, MIMEImage, etc. 

4.MIME - Multipurpose Internet Mail Extensions :

MIME is an internet standard that specifies the format for email messages, to ensure that it is compatible with text, audio, video, and other application programs.

MimeMultipart represents email or documents comprising of multiple components, each having individual MIME type.   

MIMEBase is the base class for all MIME subclasses.

MIMETExt is a class which is used to create text-type MIMEobjects

5.getpass - Portable Password Input

Password input prompts can be securely handled.

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by MISHA DEY (misha2june)

Download packets of source code on Coders Packet