Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- def notify(address, message):
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect(('localhost', 1079))
- s.send("%s %s\n" % (address, message))
- s.close()
- notify('you@gmail.com', 'muffins!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement