Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import MySQLdb
- import serial
- import time
- import smtplib
- db = MySQLdb.connect ("localhost", "root", "ciisa2018", "arduberry_db")
- cursor = db.cursor()
- query = ("SELECT correo FROM arduberry_tbl")
- cursor.execute(query)
- data = cursor.fetchone()
- print data
- USUARIO_GMAIL = 'petfeeder2000@gmail.com'
- PASS_GMAIL = 'ciisa2018'
- DESTINATARIO = #AQUI DEBO PONER EL VALOR SACADO DE LA BASE DE DATOS
- REMITENTE = 'petfeeder2000@gmail.com'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement