This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import smtplib | |
import sys | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
def send_email(user, pwd, recipient, subject, body): | |
gmail_user = user | |
gmail_pwd = pwd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import asyncore | |
from smtpd import SMTPServer | |
class EmlServer(SMTPServer): | |
no = 0 | |
def process_message(self, peer, mailfrom, rcpttos, data): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import traceback | |
import munch | |
import psycopg2 | |
import sys | |
DEBUG_QUERYS = False | |
def row_to_dict(cursor, row): | |
x = {} | |
for key, col in enumerate(cursor.description): |