edit
applications/cas/models/email.py

and replace the code with

EMAIL_SERVER="smtp.gmail.com:587"
EMAIL_SENDER="y...@google.com"
EMAIL_PASSWORD="password" ## your assword

def email(sender,to,subject,message):
    import smtplib
    fromaddr=sender
    if type(to)==type([]): toaddrs=to
    else: toaddrs=[to]
    msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s"%(fromaddr,\
        ", ".join(toaddrs),subject,message)
    server = smtplib.SMTP(EMAIL_SERVER)
    server.ehlo()
    server.starttls()
    server.ehlo()
    username=EMAIL_SENDER
    password=EMAIL_PASSWORD
    server.login(username, password)
    server.sendmail(fromaddr, toaddrs, msg)
    server.quit()


On Sep 3, 11:51 pm, Adolfo Vizcarra <avizca...@gmail.com> wrote:
> Hello
>
> Im Using CAS for authentificating my user but now im willing to change my
> email server to google so i'd like to know if someone knows hoy can i make
> CAS send an email from a google mail account
>
> thanks
>
> Adolfo Vizcarra Kusien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to