Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python send mail

Project description

Smail

Python send mail

Installation

Python 3.4 or later

>From pip

pip install Smail

Use

from Smail import Smail
a=Smail()
a.set_server("smtp.exmail.qq.com",465,"admin@aliencn.net","password")
a.set_subject('hello')
a.set_content('world')
a.add_to_addr('admin@aliencn.net')

#Optional
a.add_cc_addr('admin1@aliencn.net')
a.add_cc_addr('admin2@aliencn.net')
a.add_bcc_addr('admin3@aliencn.net')
a.add_bcc_addr('admin4@aliencn.net')
a.add_attachment(r'D:\Alien_System\Desktop\0.jpg')
a.add_attachment(r'D:\Alien_System\Desktop\1.exe')

#send mail now
a.send()

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Smail, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size Smail-0.1.8-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Smail-0.1.8.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page