### 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__
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nmail-0.0.3.tar.gz | 2.8 kB | Without provenance | Details for nmail-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nmail-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for nmail-0.0.3-py3-none-any.whl |
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
|
Security for nmail 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.