This is really strange. I am sending an email in Python as so:
content = result[1] + otherstuffhere
mail = smtplib.SMTP('smtp.gmail.com',587)
mail.ehlo()
mail.starttls()
mail.login('myemail','password')
mail.sendmail('Test','email', content)
mail.close()
Anyway, these values (in the content) are what I am sending and are from an SQLite Database. However, whenever I send result[0] every single value is blank in the email but when printing and saving to text it returns the proper value. Why is it that result[0] make all the email text blank (and itself)? - Thanks
I am using Gmail by the way to send this (you can probably see that from the SMTP address).
Aucun commentaire:
Enregistrer un commentaire