On Mon, Aug 31, 2009 at 4:19 PM, mdipierro<[email protected]> wrote: > > 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.
You can find the gmail setup info and smtp ports here: http://mail.google.com/support/bin/answer.py?hl=en&answer=13287 > > 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 -~----------~----~----~----~------~----~------~--~---

