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()
Release files for Smail 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smail-0.1.9.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Smail-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.9 kB
Release files / smail-0.1.9.tar.gz
| Download URL | smail-0.1.9.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6056086f61462424f99c586071ac2f538bebe07947c8abd137ddc375df1298bd
|
|
BLAKE2b-256 checksum How to use checksums |
b1952ae9206df7640ecc7c2070e9af4544e1e4411c5ba82d1675b954363277d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / Smail-0.1.9-py3-none-any.whl
| Download URL | Smail-0.1.9-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
025e33ff266e98580c2c8a339d958b6d9de5489c9e3219cb48a189dc59a175cf
|
|
BLAKE2b-256 checksum How to use checksums |
f8565b216f95361e771521ec200875ccb6599775e0cd326bbcfc1ebf39c89fbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|