It’s been some years since I got off the Java bandwagon. I spent many years on it. and after getting off, it feels like I was in a concentration camp for many years. Strangely, I loved it then. But the freedom from drudgery, great to begin wit,h has left me hanging in mid-air for these [...]
Archive for the 'python' Category
Ruby versus Python versus …
August 22, 2008sending smtp mails from command line (python)
July 10, 2008First of all, ruby 1.8.x does not have SSL working in SMTP, so forget connecting to smtp.gmail.com. Python and perl have it working beautifully. Here’s a quick example, modified slightly from what I found on the net.
#!/usr/bin/env python
# 2008-07-07 17:33
# use this to send a simple mail from your gmail account
import smtplib
import getpass
def prompt(prompt):
[...]
Recent Comments