Metadata-Version: 2.1
Name: temporary-mail
Version: 1.5
Summary: A Temp Mail library for python
Author: S M Shahriar Zarir
Author-email: <shahriarzariradvance@gmail.com>
Keywords: python,mail,tempmail
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown


A package that allows to create temp mail and receive emails from it.
<br>
<h3>Example:</h3>

    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('\n\-  \-  \-  \-  \-  END  \-  \-  \-  \-  \-\n')
    	sleep(5)


