Skip to main content

A SMTP Email Client with NTLP as Authentication

Project description

NTLMAIL

Emailing with SMTP and NTLM made easy

from ntlm_auth.ntlm import NtlmContext
from ntlmail import SMTP

# Create NTLM Context for auth
auth = NtlmContext("username", "password", "domain")

# Create SMTP Connection to the Server
conn = SMTP("server.test.com", 587, "test@gmail.com")

# Check if the Server supports NTLM
print(conn.test_NTLM())

# Authenticate via the NTLM Context from above
print(conn.authenticate(auth))

# Ready to send Emails now
print(conn.send_mail("receiver@gmail.com", "Hey there!", "<h1>This email was sent via NTLMAIL</h1>"))

Contributing

  • If you have any contribution Ideas or Improvements, don't hesitate adding them!

Change Log

0.0.1 (19/07/2023)

  • First Release

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

ntlmail-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file ntlmail-0.0.1.tar.gz.

File metadata

  • Download URL: ntlmail-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ntlmail-0.0.1.tar.gz
Algorithm Hash digest
SHA256 33f22a5f0ef231e6ad1209fce9b14967b9b374126dbc81f9c6318ba568ac626e
MD5 da90f8c77e75dd7dcedf0c47d9a9d815
BLAKE2b-256 626a9e78c98774bfa0bf845f12c0b0d6c2b30352f4898248a2d300978805edb5

See more details on using hashes here.

Supported by

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