Advertisement
Azelphur

Untitled

Nov 18th, 2011
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import socket
  2.  
  3. def notify(address, message):
  4.     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  5.     s.connect(('localhost', 1079))
  6.     s.send("%s %s\n" % (address, message))
  7.     s.close()
  8.  
  9. notify('you@gmail.com', 'muffins!')
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement