Skip to main content

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()

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.9.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Smail-0.1.9-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file smail-0.1.9.tar.gz.

File metadata

  • Download URL: smail-0.1.9.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for smail-0.1.9.tar.gz
Algorithm Hash digest
SHA256 6056086f61462424f99c586071ac2f538bebe07947c8abd137ddc375df1298bd
MD5 adf9a79c7e233a49d45af5cf4d9f7d3a
BLAKE2b-256 b1952ae9206df7640ecc7c2070e9af4544e1e4411c5ba82d1675b954363277d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Smail-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for Smail-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 025e33ff266e98580c2c8a339d958b6d9de5489c9e3219cb48a189dc59a175cf
MD5 4dd8e79c411cafc5bd3d2e14ec7c3ba0
BLAKE2b-256 f8565b216f95361e771521ec200875ccb6599775e0cd326bbcfc1ebf39c89fbd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 files

0.1.8

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page