📬 ByMail is a lightweight Python library to fetch inbox messages from temporary email providers. It validates domains and supports both one-shot and continuous (looping) fetching.
🚀 Features
-
Multiple domains: Works with a curated set of temp-mail domains.
-
Simple API: Pass a full email string (e.g.,
name@mailto.plus). -
Looping mode: Print incoming emails continuously (
Loop=True). -
One-shot mode: Get a list of emails to iterate yourself (
Loop=False). -
Send emails: Use
SendMailto send messages via the tempmail.plus API. -
Flexible imports:
from ByMail import SendMailorfrom ByMail.send import SendMail. -
Status & response:
SendMail.status()to check success;.response()for raw response.
⚙️ Installation
pip install ByMail -U
🧠 Usage Example
from ByMail import Mail, SendMail
# One-shot: you iterate
m = Mail(Email="your-user@mailto.plus", Loop=False)
for mail in m.get_inboxes():
print(mail)
# Looping: prints internally and blocks (Ctrl+C to stop)
m = Mail("your-user@mailto.plus", Loop=True)
m.get_inboxes()
# ✅ Supported Domains (
# mailto.plus, fexpost.com, fexbox.org
# mailbox.in.ua, rover.info, chitthi.in
# fextemp.com, any.pink, merepost.com
# )
✉️ Send email example
from ByMail import SendMail
def main():
mail = SendMail(
from_="your-user@merepost.com",
to="to-user@fexpost.com",
subject="Hello from ByMail",
text="<b>Hi!</b> This is a test.", # default content_type is "text/html"
# content_type="text/plain", # optionally switch to plain text
)
print(mail.status()) # True if sent successfully
# Inspect raw response if needed:
# print(mail.response().status_code, mail.response().text)
if __name__ == '__main__':
main()
📦 Version
- v3.0.0 – Full email API, domain validation, loop/non-loop modes, SendMail
💬 Help & Support .
- Follow updates via the Telegram Channel.
- For general questions and help, join our Telegram chat.
Metadata
Release files for bymail 3.0.0
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 |
|---|---|---|---|---|
| bymail-3.0.0.tar.gz | 5.6 kB | Without provenance | Details for bymail-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bymail-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for bymail-3.0.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / bymail-3.0.0.tar.gz
| Download URL | bymail-3.0.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7ae8f67e7b2fbc13b92ff48cdbdc1b98181dbc5cf9fc09ed06d36045fdd5ea1
|
|
BLAKE2b-256 checksum How to use checksums |
27e10beed7f9e863e754ce245de17fa754558daa346fe7dae4a691757e6057c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / bymail-3.0.0-py3-none-any.whl
| Download URL | bymail-3.0.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62a4e850c57de208590542d864e6286a0e7b311264486a5173361e2092deffb2
|
|
BLAKE2b-256 checksum How to use checksums |
0ddf897cc3193720c44cb8cbf3936a0630217768ce88384f5e85db3a148a480b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Security for bymail 3.0.0
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.