Mail Engine
Mail Engine is a tool that sends emails. It is beginner-friendly and can send Plane Text and Rich Text (RTF) mails easily. It can also send One Time Password (OTP).
Functions
genrator.num(6)
Generate a number and can be used for sending One Time Password (OTP) on email
we can put any number
sendmail.genscript('rtf','main.py')
Generates Rich Text Formate (RTF) script.
In case you don't want to write code
sendmail.genscript('rtf','main.py')
Generates Plane Text Formate script.
In case you don't want to write code
sendmail.mail(port,server,send_mail,receive_mail,password,message)
Send Plane Text Email
sendmail.sendmailrtf(port,server,send_mail,receive_mail,password,message,subject>
Send Rich Text Mail. Use HTML only
Usage :
For Generating Script Use:
from mailengine import sendmail
# genrate script with rich text formate
sendmail.genscript('rtf','main.py')
Sending Plain Text Mail:
from mailengine import sendmail
port = 587
send_mail= "sender email"
receive_mail = "receiver email"
password = "password"
server = "smtp.gmail.com" #server
message = """\
Subject: Subject
This mail was sent using mailengine (python). Add your content here, this tool >
"""
sendmail.mail(port,server,send_mail,receive_mail,password,message)
Sending Rich Text Mail:
from genOTP import sendmail
port = 465
send_mail= "sender email"
receive_mail = "receiver email"
password = "password"
server = "smtp.gmail.com" #server
subject= "subject"
message = """
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<style type="text/css" media="screen">
body {
font-family: "Montserrat", sans-serif;
}
hr {
width: 935px;
color: rgb(80, 61, 61);
margin: 0px 0px 0px 105px;
opacity: 0.25
}
</style>
</head>
<body>
<h1 style="color:#00466a; margin:91px 0px 15px 101px;">Test Mail</h1>
<hr>
<div style="margin: 31px 0px 0px 105px;">
<p>
Hi,
<br>
This mail was sent using mailengine (python).Add your content here, this tool can send mail and OTP
</p>
<br>
Regards,
<br>
Your Brand
</div>
<div style="margin: 91px 0px 0px 800px; font-size: 80%; opacity: 0.50;">
<p>Your Brand Inc</p>
<p>8010 Somewhere</p>
<p>InTheWorld</p>
</div>
</body>
</html>
"""
sendmail.sendmailrtf(port,server,send_mail,receive_mail,password,message,subject)
Metadata
Release files for mailengine 1.1
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 |
|---|---|---|---|---|
| mailengine-1.1.tar.gz | 4.3 kB | Without provenance | Details for mailengine-1.1.tar.gz |
Release files / mailengine-1.1.tar.gz
| Download URL | mailengine-1.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4ba4b4f186c3597ae62023f9d80f0ecfa405477ad27c124c813e9d20276c6eb
|
|
BLAKE2b-256 checksum How to use checksums |
69caf1afd4f21af2e4dd4634ab1d1397a0eecf5abaa5952586c1bf1602613d79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
|
Security for mailengine 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.