Skip to content
/ ByMail Public

πŸ“¬ 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.

License

Notifications You must be signed in to change notification settings

DevZ44d/ByMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

πŸ“¬ 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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages