Skip to main content

A simple package to send emails with python

Project description

MyEmail

A simple library to send emails with python

Example

from myemail.myemail import send
import os

sslport = os.getenv("SSLPORT")  # For SSL
password = os.getenv("PASSWORD")
smtpserver = os.getenv("SMTPSERVER")
emailvar = os.getenv("EMAIL")
attachment_path = f"{os.getenv('HOME')}/testfile123.txt"
print(attachment_path)
send(
    msg_content="test",
    from_email=emailvar,
    to_email=emailvar,
    subject="test",
    sslport=sslport,
    password=password,
    attachment_path=attachment_path,
)

Contact

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

myemail-0.9.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

myemail-0.9.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file myemail-0.9.0.tar.gz.

File metadata

  • Download URL: myemail-0.9.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.6.15-amd64

File hashes

Hashes for myemail-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e351ad3c0128cba0de8f297f111a877bd5645061c227700d213ed64f050a9069
MD5 894a0439de199b81d15fe5c6f3dee8be
BLAKE2b-256 c256fd653c027d3f885fb6ceca20f4d1e8b239c993efa7dafe10b7b7dceee014

See more details on using hashes here.

File details

Details for the file myemail-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: myemail-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.6.15-amd64

File hashes

Hashes for myemail-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c76fd1bda9d3facdeef66272fea67b761062ef817238484d4489862db13c634f
MD5 649bb0d32c52699a9ccff0186a1ca24a
BLAKE2b-256 d903671f25c11d11def26a1a196cd0ca41591277fe0392edf4ae30b42b26b884

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