Volodymyr Sergeyev's Labs
You may also look at my portfolio. I provide software development, primarily in Python/Django.
Feel free to contact me by E-mail. My Skype ID: v.sergeyev. CV: CV_2007.PDF
Here you can find some useful tools and scripts

Feel free to use all this stuff :)
 

GMail + Python + Django at Feb. 29, 2008

"The libgmail project is a pure Python binding to provide access to Google's Gmail web-mail service."

This post about pretty good library - libGmail. It's quite simple to send and retrieve mail from GMail service with it. You may also use Gmail account as POP or SMTP server with help of libGmail.

For example, I'm use this code to send e-mail for a new user:


import libgmail
...
def activation(request):
to_email = request.user.email
activation_link = http://dontbeevil.com/activate/%s/ % request.COOKIES["sessionid"]
ga = libgmail.GmailAccount(dontbeevil@gmail.com, "ourpassword")
ga.login()
subject = "Service administator"
msg = "Dear user! To activate your account follow this link: %s" % activation_link
gmsg = libgmail.GmailComposedMessage(to_email, subject, msg)
ga.sendMessage(gmsg)
...

0 comments

Click here to add a new comment »

This site is © 2007-2008 V.Sergeyev. Powered by Django