Skip to main content

A Temp Mail library for python

Project description

A package that allows to create temp mail and receive emails from it.

Example:


from pytempmail import TempMail
from time import sleep

tm=TempMail()

Print Current Mail

print(f'Email: {tm.email}')

printed_mails=[]

print('All Emails are:') while True: all_mails=tm.get_mails() for mail in all_mails: if mail.id not in printed_mails: # Adding to the list, so it will not print it again printed_mails.append(mail.id) print(f'From: {mail.from_name} - {mail.from_addr}') print(f'Subject: {mail.subject}') print(f'Body: {mail.text}') # you can use mail.description to print short text # mail.html returns only html. use it if you're on web print('

') sleep(5)

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

temporary-mail-1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

temporary_mail-1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file temporary-mail-1.0.tar.gz.

File metadata

  • Download URL: temporary-mail-1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for temporary-mail-1.0.tar.gz
Algorithm Hash digest
SHA256 f6f0f3899e0c6004fd4f5f03eaf90084eee9d7795b1162e72274569cfbe88592
MD5 50745a1ca5c182b87b77c092060cbba0
BLAKE2b-256 b5b8bbbb7362f785f0154e1ceb0d85b18a6bb252cfe58fe1166b3915386359ef

See more details on using hashes here.

File details

Details for the file temporary_mail-1.0-py3-none-any.whl.

File metadata

  • Download URL: temporary_mail-1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for temporary_mail-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09161b4f1ba4cf50d30afe8385a77a0e04a492e559fc6367d1ee4ceaf6f8dac7
MD5 9741092c6364336d374fa6f85b21d51c
BLAKE2b-256 6e8b946801b0786a8e204ca59e7e0ee9bd9fa16a1a757b6203099ce59f625872

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