= "[email protected]" you = "[email protected]" p = "senha" server = smtplib.SMTP_SSL('smtp.gmail.com', 465) server.login(me, p) server.sendmail(me, you "this message is from python") server.quit()
= "[email protected]" you = "[email protected]" p = senha server = smtplib.SMTP_SSL('smtp.gmail.com', 465) server.login(me, p) server.sendmail(me, you "this message is from python") server.quit()
csvfile: c = csv.reader(csvfile, delimiter=',', quotechar='|') for row in c: m = dict([('name', row[0]), ('email', row[1]), ('word', row[2])]) maillist.append(m) Biblioteca csv Cada linha um dicionário