Skip to main content

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.

Project description

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 .

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

bymail-3.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

bymail-3.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file bymail-3.0.0.tar.gz.

File metadata

  • Download URL: bymail-3.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for bymail-3.0.0.tar.gz
Algorithm Hash digest
SHA256 a7ae8f67e7b2fbc13b92ff48cdbdc1b98181dbc5cf9fc09ed06d36045fdd5ea1
MD5 e4abe5c2f51af8b97ab01f63d8650de9
BLAKE2b-256 27e10beed7f9e863e754ce245de17fa754558daa346fe7dae4a691757e6057c6

See more details on using hashes here.

File details

Details for the file bymail-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: bymail-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for bymail-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62a4e850c57de208590542d864e6286a0e7b311264486a5173361e2092deffb2
MD5 aac9725ab4a7759732ad40a9ac88560c
BLAKE2b-256 0ddf897cc3193720c44cb8cbf3936a0630217768ce88384f5e85db3a148a480b

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