I sent an email with the following python code:
import yagmail, sha, sys, os
os.system('stty -echo')
password = raw_input('Gmail password: ')
os.system('stty echo')
print ''
if not sha.sha(password).hexdigest() == 'digest_of_the_password':
print 'Password Declined'
sys.exit()
yag = yagmail.Connect('me@gmail.com', password)
yag.send('to@example.com', 'Hi', "G'day")
The subject came out as 'Hi', but the body came out 'RydkYXk='. I installed yagmail with the command: sudo pip install yagmail
in my mac terminal.
How do I fix this error?