Skip to main content

One-line SMPT email sender

Project description

# 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__


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

nmail-0.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

nmail-0.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nmail-0.0.3.tar.gz.

File metadata

  • Download URL: nmail-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nmail-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1279667a1b8b5c94533ba94ef5ee1069d61686c4d784a8a8951419078125f47d
MD5 0028bb5dc4ed20cd79e3344c7f355986
BLAKE2b-256 4088c69d8aafe789e89de59cef73d2b50c737a11b623b9726cecf80e3a16b1e3

See more details on using hashes here.

File details

Details for the file nmail-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nmail-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nmail-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 191331fa84f25c0cd8e2084ce0e5df1afcd18a0a6cfb19eeefaae3f7036c366e
MD5 a1743176981197d0a2c4a2479a32aa42
BLAKE2b-256 64988c7f2ee7c3ab4930de66234d9296620c57a0b3352ea95fd595e9ce9621eb

See more details on using hashes here.

Supported by

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