New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bymail

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bymail

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.

pipPyPI
Version
3.0.0
Maintainers
1

Telegram-Discuss

📬 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 SendMail to send messages via the tempmail.plus API.

  • Flexible imports: from ByMail import SendMail or from 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 .

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts