Skip to main content

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


Download files

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

Source Distribution

Smail-0.1.8.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

Smail-0.1.8-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file Smail-0.1.8.tar.gz.

File metadata

  • Download URL: Smail-0.1.8.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Smail-0.1.8.tar.gz
Algorithm Hash digest
SHA256 07cad7e7fd1a12ba3679b2aba759e90bb1aa114809cf3b317a6ec22ea6caf987
MD5 30c07ac4a3e9ea13bcfe2469dcc23b4f
BLAKE2b-256 83f9602140db59ae0dab9e893c6d0c4186c5325d8e2e667ea5ff633c7a9f0633

See more details on using hashes here.

File details

Details for the file Smail-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for Smail-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1037af57fa42dc48c99dcfa417d8ec9620d0220689753c093e2f4ed7fd72e1
MD5 9d317e7e95aaacc0bb44967cc9de1900
BLAKE2b-256 7e1fbe5e2e8c6f28c723253053384f062952a4da11ea852ef11f46610d1d4612

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page