Skip to main content
# nmail
### SMTP mail sender.

With this package you will able to send mails in 1 line.
There is two operations mode:

### __Config mode__:

Use `config.yml` to specify next variables:

smtp_server: '10.0.0.1'
smtp_port: 587
login: 'username@corp.com'
password: 'password'

Send email with specifying `config.yml` file:

import nmail
nmail.send_mail(to=['mybro@example.com','someone@example.com'],
cc=['copy@example.com'],
bcc=['hidden_copy@example.com'],
subject='No subject',
text='No Text',
attachments=['/tmp/test.txt'],
send_as='delegated_mailbox@example.com',
config='/tmp/config.yml')

> If you will not specify __config__ variable - by default nmail will pick config.yml __from package folder__

### __Inline mode__:

Send Email inline:

import nmail
nmail.send_mail(to=['mybro@example.com','someone@example.com'],
cc=['copy@example.com'],
bcc=['hidden_copy@example.com'],
subject='No subject',
text='No Text',
attachments=['/tmp/test.txt'],
send_as='delegated_mailbox@example.com',
smtp_server='10.0.0.1'
smtp_port=587
login='username@corp.com'
password='password')

> Also, you may override some of parameters by __specifying__ it in the `send_mail` function call.
Other params will be gathered from __config file__


Release files for nmail 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nmail 0.0.3
File Size Uploaded
nmail-0.0.3.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nmail 0.0.3
File Interpreter ABI Platform
nmail-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / nmail-0.0.3.tar.gz

Download URL nmail-0.0.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1279667a1b8b5c94533ba94ef5ee1069d61686c4d784a8a8951419078125f47d
BLAKE2b-256 checksum
How to use checksums
4088c69d8aafe789e89de59cef73d2b50c737a11b623b9726cecf80e3a16b1e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

Release files / nmail-0.0.3-py3-none-any.whl

Download URL nmail-0.0.3-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
191331fa84f25c0cd8e2084ce0e5df1afcd18a0a6cfb19eeefaae3f7036c366e
BLAKE2b-256 checksum
How to use checksums
64988c7f2ee7c3ab4930de66234d9296620c57a0b3352ea95fd595e9ce9621eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page