pop is not the server for sending but the one for receiving. The one for sending is smpt.gmail.com also the port is different but I do not recall the correct one. You also have to configure gmail settings to allow this smtp.
On Aug 31, 1:09 pm, Aditya Desai <[email protected]> wrote: > def sendmail(): > mail=Mail() > mail.settings.server='pop.gmail.com:995' > mail.settings.sender='[email protected]' > mail.settings.login='[email protected]:password' > return mail.send(to=['[email protected]'], subject='hi', > message='hi) > > where I am using the correct username and password. However the > mail.send function is returning false and also the mail is not been > sent to the desired destination. Can I know what I am doing wrong. > > Thanks and Regards, > Aditya Desai. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

