Skip to content

Instantly share code, notes, and snippets.

View smedegaard's full-sized avatar
👋
Software for ML at AMD

Anders Smedegaard Pedersen smedegaard

👋
Software for ML at AMD
View GitHub Profile
@smedegaard
smedegaard / smtp client
Created February 20, 2014 10:33
KTN NTNU smtp client
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import sys, ssl, base64, getpass
from socket import *
ssl.PROTOCOL_TLSv1
endmsg = '\r\n.\r\n'
# Choose a mail server (e.g. Google mail server) and call it mailserver
mailserver = "smtp.gmail.com"
port = 465