Debugging smtp connections


/ Published in: Python
Save to your folder(s)

See: http://docs.python.org/library/smtpd.html

You might use other port instead 25.


Copy this code and paste it in your HTML
  1. #!/usr/bin/python
  2. import smtpd, asyncore
  3.  
  4. server = smtpd.DebuggingServer(('localhost', 25), None)
  5. asyncore.loop()

URL: http://ubuntuforums.org/showthread.php?t=1572903

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.