python email generator code example
Example 1: python email
from mailer import Mailer
mail = Mailer(email='[email protected]', password='your_password')
mail.send(receiver='[email protected]', subject='TEST', message='From Python!')
Example 2: python email
from mailer import Mailer
mail = Mailer(email='[email protected]', password='your_password')
mail.settings(provider=mail.MICROSOFT)
mail.send(receiver='[email protected]', subject='TEST', message='From Python!')
Example 3: python random email generator
Try the following:
import random
import string
def random_char(y):
return ''.join(random.choice(string.ascii_letters) for x in range(y))
print (random_char(7)+"@gmail.com")
you can use string.ascii_lowercase if you only want lower case letters