Skip to main content

SimpleTelnetMail

Requirements

This package require :

  • python3
  • python3 Standard Library

Installation

pip install SimpleTelnetMail 

Description

Send simples emails with Telnet.

Examples

Simple usage

Command line

SimpleTelnetMail --host="smtp.server.com" --from="my.address@domain.com" --to="receiver@domain.com" --message="Secret and not secure email with Telnet."
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver@domain.com" -m "Secret and not secure email with Telnet." --username="my.address@domain.com" --password="password"

Python

from SimpleTelnetMail import TelnetMail

client = TelnetMail("my.server.com", from_ = "my.address@domain.com", to = ["receiver@domain.com"], message = "Secret and secure email with Telnet.")
client.send_mail()

client = TelnetMail("my.server.com", from_ = "my.address@domain.com", to = ["receiver@domain.com"], message = "Secret and secure email with Telnet.", username="my.address@domain.com", password="password")
client.send_mail()

Advanced usage

Command line

Don't forgot to use --ssl or -s option to secure your email with SSL/TLS.

  1. Without authentication, with custom headers, to several recipients:
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver1@domain.com,receiver2@domain.com" -m "Secret and secure email with Telnet." --port=587 --pseudo="Me" --debug=4 --ssl --ehlo="MYPC" Date="Sat, 19 Dec 2020 01:02:03 -0000" Subject="Secret Email" MIME_Version="1.0", Encrypted="ROT13", Fake="Fake hearder", Sender="PSEUDO <my.address@domain.com>", Comments="My comment", Keywords="Email, Secret", Expires="Sat, 25 Dec 2021 05:35:23 -0000", Language="en-EN, it-IT", Importance="hight", Priority="urgent", Sensibility="Company-Confidential", From="PSEUDO <my.address@domain.com>", To="receiver1@domain.com,receiver2@domain.com", Content_Type="text/plain; charset=us-ascii", Content_Transfer_Encoding="quoted-printable"
  1. With authentication
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver@domain.com" -m "Secret and secure email with Telnet." -U "my.address@domain.com" -W "password" --port=587 --pseudo="Me" --debug=4 --ssl --ehlo="MYPC"
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver@domain.com" -m "Secret and secure email with Telnet." -U "my.address@domain.com" -W "password" -p 587 -P "Me" -d 4 -s -e "MYPC" Subject="Hello" MIME_Version="1.0" Content_Transfer_Encoding="quoted-printable" Content_Type="text/plain; charset=us-ascii"
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver@domain.com" -m "Secret and secure email with Telnet." -U "my.address@domain.com" -W "password" -p 587 -P "Me" -d 4 -s -e "MYPC" Subject="Hello" MIME_Version="1.0" Content_Transfer_Encoding="7bit" Content_Type="text/plain; charset=utf-8"
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver@domain.com" -m "U2VjcmV0IGFuZCBzZWN1cmUgZW1haWwgd2l0aCBUZWxuZXQu" -U "my.address@domain.com" -W "password" -p 587 -P "Me" -d 4 -s -e "MYPC" Subject="Hello" MIME_Version="1.0" Content_Transfer_Encoding="base64" Content_Type="text/plain; charset=utf-8"
SimpleTelnetMail -H "smtp.server.com" -f "my.address@domain.com" -t "receiver1@domain.com,receiver2@domain.com" -m "PHA+U2VjcmV0IGFuZCBzZWN1cmUgZW1haWwgd2l0aCBUZWxuZXQuPC9wPg==" -U "my.address@domain.com" -W "password" -p 587 -P "Me" -d 4 -s -e "MYPC" Subject="Hello" MIME_Version="1.0" Content_Transfer_Encoding="base64" Content_Type="text/html; charset=utf-8"

Python

  1. Without authentication, with custom headers, to several recipients:
from SimpleTelnetMail import TelnetMail

client = TelnetMail("my.server.com", port= 87, from_="my.address@domain.com", to=["receiver1@domain.com", "receiver2@domain.com"], message="Secret and secure email with Telnet.", ehlo="MYPC", pseudo="Me", ssl=True, debug=4, Subject="Secret Email", Date="Sat, 19 Dec 2020 01:02:03 -0000", MIME_Version="1.0", Encrypted="ROT13", Fake="Fake hearder", Sender="PSEUDO <my.address@domain.com>", Comments="My comment", Keywords="Email, Secret", Expires="Sat, 25 Dec 2021 05:35:23 -0000", Language="en-EN, it-IT", Importance="hight", Priority="urgent", Sensibility="Company-Confidential", From="PSEUDO <my.address@domain.com>", To="receiver1@domain.com,receiver2@domain.com", Content_Type="text/plain; charset=us-ascii", Content_Transfer_Encoding="quoted-printable")
client.send_mail()

print(repr(client))
print(client)
print(client.responses.decode())
  1. With authentication
from SimpleTelnetMail import TelnetMail

client = TelnetMail("my.server.com", port=587, from_="my.address@domain.com", to=["receiver@domain.com"], message="Secret and secure email with Telnet.", ehlo="MYPC", pseudo="Me", ssl=True, debug=4, username="my.address@domain.com", password="password")
client.send_mail()

print(repr(client))
print(client)
print(client.responses.decode())

client = TelnetMail("my.server.com", port=587, from_="my.address@domain.com", to=["receiver@domain.com"], message="Secret and secure email with Telnet.", ehlo="MYPC", pseudo="Me", ssl=True, debug=4, username="my.address@domain.com", password="password", Subject="Hello", MIME_Version="1.0", Content_Transfer_Encoding="quoted-printable", Content_Type="text/plain; charset=us-ascii")
client.send_mail()

client = TelnetMail("my.server.com", port=587, from_="my.address@domain.com", to=["receiver@domain.com"], message="PHA+U2VjcmV0IGFuZCBzZWN1cmUgZW1haWwgd2l0aCBUZWxuZXQuPC9wPg==", ehlo="MYPC", pseudo="Me", ssl=True, debug=4, username="my.address@domain.com", password="password", Subject="Hello", MIME_Version="1.0", Content_Transfer_Encoding="base64", Content_Type="text/html; charset=utf-8")
client.send_mail()

Github Page

Licence

Licensed under the GPL, version 3.

Metadata

Release files for SimpleTelnetMail 0.1.1

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

Source distribution (sdist)

Source distribution for SimpleTelnetMail 0.1.1
File Size Uploaded Provenance Actions
SimpleTelnetMail-0.1.1.tar.gz 19.5 kB Without provenance Details for SimpleTelnetMail-0.1.1.tar.gz

Release files / SimpleTelnetMail-0.1.1.tar.gz

Download URL SimpleTelnetMail-0.1.1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f63ed95923d29ce34e54709d14a717eec7fb0624c3962e5380dbfbe4bbe4cd21
BLAKE2b-256 checksum
How to use checksums
d89fa92f392231c9a2b79ec9af31ccbf4cdf0dbd2b843b4d051edf4cb463b304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Security for SimpleTelnetMail 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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