Skip to main content

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! 📬🎉

Metadata

Release files for tempinbox 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tempinbox 0.2.1
File Size Uploaded
tempinbox-0.2.1.tar.gz 5.4 kB Details

Release files / tempinbox-0.2.1.tar.gz

Download URL tempinbox-0.2.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a428380bafd3a096751fe5ce7ecbca4ca85eb9e688c069e7318c18dbe9a5720b
BLAKE2b-256 checksum
How to use checksums
91de21521bcb7ee1ddd9873442b8c8d9be6176f93d8379a14dc8249af022ae88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page