Skip to main content

A Python package for generating temporary email addresses using Emailnator.

Project description

TempInbox - Your Temporary Email Solution 📧

Welcome to TempInbox, a Python package designed to simplify your interaction with temporary email addresses. With TempInbox, you can effortlessly generate disposable email addresses and access their content.

Installation 🛠️

To get started, simply install TempInbox using pip:

pip install tempinbox

Usage Example 🚀

from tempinbox import TempEmail

# Create a TempEmail instance
client = TempEmail()

# Generate a temporary email address with specific options
email_address = client.generate_temp_email(domain=False, dot_gmail=True, plus_gmail=False)["email"][0]

# Get a list of emails for the generated address
email_list = client.get_mail_list(email_address)

# Get the content of a specific email (ID=2)
email_content = client.get_mail_content(email_address, id=2)

print(email_content)

This code snippet demonstrates how to generate a temporary email address with the following options:

Sample Output 📋

Generated Email Address:

m.ar.io.sgl.ade@gmail.com

List of Received Emails:

{
    'messageData': [
        {
            'messageID': 'ADSVPN',
            'from': 'AI TOOLS',
            'subject': 'Unleash the power of AI with our ultimate directory of online tools!',
            'time': 'Just Now'
        },
        {
            'messageID': 'MThiODcwYWI5Mzk3MDYwNg==',
            'from': 'GPTDOS Access <hi@gptdos.com>',
            'subject': 'GPTDOS Access Code',
            'time': '14 hrs ago'
        },
        {
            'messageID': 'MThiODZmNjlhNzhjYmI5Zg==',
            'from': 'LOVO <hello@lovo.ai>',
            'subject': 'LOVO Newsletter 👻',
            'time': '19 hrs ago'
        }
    ]
}

Email Content (ID=2):

<div id="subject-header">
    <b>From: </b>GPTDOS Access &lt;hi@gptdos.com&gt;<br/>
    <b>Subject: </b>GPTDOS Access Code
</div>
<html>
    <head>
        <title></title>
    </head>
    <body>
        您好,<br>
        您在使用 GPTDOS, 请输入验证码:<br/>
        <br/>
        <b>81269658</b>
        <br/>
        GPTDOS<br/>
        <img src="https://u13032898.ct.sendgrid.net/wf/open?upn=rqJJO9-2BJL8i62yHtdgY1cWouC7RdXlcfG3E73dU1e9bPvX1VDl-2BssK4tZTTDPVKiIzaKX2ZiEbmPYpW1BM32GVs-2FvWGiq0R-2BAvavNooikOlxpsMBCJehGSg33aHAZgfSpipfZ1gyuFsxIrfleaNTIuL8Nhu2y5on3fe6rpukhEi-2BHtezMLmZig6IHrWHV12TR94QgEhzPmLoXOHUXx76bqlGEZLGixTo6lCYGECJfgezt6vsLL78PtVSJpanSdYvdoPj-2BNgztK6xsXmw6ZhVWEBeMYBIBQ9BCW7od6JzUo6DaVoLj1iOQcexl-2BOC9COGhif32U42TOV04TnEnFNQ106dIjBtPU3VgTxEZA0cAR35d5AJUgCGRi4-2B-2FqqnPM2-2F" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom0 !important;padding-right:0 !important;padding-left:0 !important;"/>
    </body>
</html>

Features 🌟

  • Quickly generate temporary email addresses.
  • Retrieve a list of received emails with details.
  • Access the content of specific emails.

Contribution 🤝

We welcome contributions! If you'd like to enhance TempInbox, feel free to open an issue or create a pull request.

License 📜

This project is licensed under the MIT License - see the LICENSE file for details.

Repository Views Views


GitHub GitHub stars GitHub forks

For more information, visit our GitHub repository.

Happy Emailing! 📬🎉

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

tempinbox-0.2.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file tempinbox-0.2.1.tar.gz.

File metadata

  • Download URL: tempinbox-0.2.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tempinbox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a428380bafd3a096751fe5ce7ecbca4ca85eb9e688c069e7318c18dbe9a5720b
MD5 cce703a7ad0d3f1dbc3bc383f9b2c981
BLAKE2b-256 91de21521bcb7ee1ddd9873442b8c8d9be6176f93d8379a14dc8249af022ae88

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page