Skip to content

Python package for the creation and use of temporary email addresses.

Notifications You must be signed in to change notification settings

memst/MinuteMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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":"[email protected]",
   "to_mail":"[email protected]",
   "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":"[email protected]",
   "from_hdr":"'Sender Name' <[email protected]>",
   "decode_status":0,
   "attached":[
      
   ]
}

About

Python package for the creation and use of temporary email addresses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages