Skip to main content

Package that lets you generate email addresses and read their mail through dropmail.me websocket.

Project description

MinuteMail

A python package for recieving mail from temporary email addresses.

Installation

This package has been published on PyPi, to install it run pip install MinuteMail

Usage

# Import package
import MinuteMail

# Create a new mailbox
box = MinuteMail.mailbox()

# A new mailbox already comes with one email address
print(box.get_emails()[0])

# You can save the passwords to addresses to a file
'''
with open ('email_hashes.txt', 'w') as f:
	for hash in box.email_hashes:
		f.write(hash)
		f.write('\n')
'''
# You can then read the hashes and add them to the box in the next session
'''
with open ('email_hashes.txt', 'r') as f:
	for hash in f:
		box.add_hash(hash)
'''

#Wait for and print arriving mail
while True:
	print(box.next())

Emails come in JSON format. Here's an example of what you'd recieve

{
   "to_mail_orig":"zbitobdkvvbb@dropmail.me",
   "to_mail":"zbitobdkvvbb@dropmail.me",
   "text_source":"text",
   "text":"This is message text",
   "subject":"This is the message subject line",
   "ref":"l2vnogdc02kme9oetllg27ivstqdcer6",
   "received":"2020-11-12T13:30:24Z",
   "has_html":true,
   "from_mail":"sender@email.xx",
   "from_hdr":"'Sender Name' <sender@email.xx>",
   "decode_status":0,
   "attached":[

   ]
}

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

MinuteMail-0.2.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

MinuteMail-0.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file MinuteMail-0.2.0.tar.gz.

File metadata

  • Download URL: MinuteMail-0.2.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for MinuteMail-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c65fc10ec15935b201a2c66e4033324793411f8630106d4f47991b5961e8e60b
MD5 ad28414b09a3ba61c0a4d0f57588a37e
BLAKE2b-256 b5704fc3cc827e913cb633c41d12cb9b361ef745355954836aace710c02b9b78

See more details on using hashes here.

File details

Details for the file MinuteMail-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: MinuteMail-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for MinuteMail-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cdd3c8e90ebff7653246c6616747822c13e6590a9c55ad815f5cb8d5329bd54
MD5 8ed179d8616ab1dd738061611ea60168
BLAKE2b-256 59d099031bc510dc754b9398101546b5fe61cb7ea5f8d12681dfdc1ea179b1aa

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