Not hosting it yet, still building and testing... I have tried to use gmail (I am located in USA) and had encountered same problems you and others did. Since I am not hosted YET, and for testing purposes I needed be able to send email I decided to go with this company I found yesterday... In this regard it seems like the same solution you found when you mentioned *"the mail settings was given by the site people themself... "*
The Web2Py book on this subject is correct - it just doesn't work with gmail as SMTP. This is what I have in my db.py and it works: ##configure email from gluon.tools import Mail mail=auth.settings.mailer mail.settings.server ='smtp.mandrillapp.com:587' # this is the SMTP and port mail.settings.sender = 'mya...@gmail.com' # note that a gmail adrs CAN BE USED as sender mail.settings.login = 'mya...@gmail.com:pwdYouGonnaGetFromMandrillapp' Take care, NeoToren On Wednesday, January 22, 2014 9:00:35 AM UTC-5, Akash Agrawall wrote: > > Can you explain it in a more brief way. Like where are you hosting the > site and which site you are using to send the mail from(like gmail, yahoo > or ??) and please fill in the mail settings(in db.py) that you have used to > make it work. > In my case the case was that the server was from US and gmail has some > kind of firewall to disable requests from this area. Finally I used the > email of the site itself which allowed me to host and the mail settings was > given by the site people themself... > > Regards, > Akash > > > On Wed, Jan 22, 2014 at 2:43 AM, NeoToren <drsc...@gmail.com <javascript:> > > wrote: > >> Hello, >> >> I have had the same issue trying to send email using Web2Py server. >> This is not mere luxury, emails are needed for a robust authentication >> process which Web2Py offers, IF one can send emails from W2P... >> >> Seems the problem is with GMAIL as other have noted before, on this and >> on other blogs. >> I have tried all the possible combinations of port with TLS and etc... >> >> Nothing worked and some combinations actually caused Web2Py server to >> crash... >> >> Eventually - went to https://mandrillapp.com/ and got SMTP service (for >> free). >> It takes literally 5 minutes to register with these guys get SMTP >> definitions that you can then use in Web2Py and it works !!! >> >> Disclaimer - I have *nothing* to do with this company mandrillapp. I >> have actually got the name from one of the links that Alan Etkin has posted >> a few days ago. >> Hope it helps >> >> >> On Monday, January 6, 2014 6:04:06 PM UTC-5, Cliff Kachinske wrote: >>> >>> On webfaction you can set up an email account and access it directly >>> from within web2py, thus eliminating the transmission to gmail. >>> >>> On Saturday, January 4, 2014 3:40:11 AM UTC-5, Akash Agrawall wrote: >>>> >>>> Hie folks.. I know this question is already been asked but I didn't get >>>> any help from those answers..... please hava look at this.... >>>> I am unable to send email in server(to be specific webfaction.com) ... >>>> but it's running fine on local host >>>> all these three lines in db.py are set to true. >>>> auth.settings.registration_requires_verification = True >>>> auth.settings.registration_requires_approval = True >>>> auth.settings.reset_password_requires_verification = True >>>> >>>> When I complete the registration form a flash appears on the >>>> top-right corner of the page with a flash message "Unable to send mail" >>>> These are the settings of the mail server in db.py >>>> >>>> mail = auth.settings.mailer >>>> mail.settings.server = 'smtp.gmail.com:587' >>>> mail.settings.sender = 'fakeid...@gmail.com' >>>> mail.settings.tls = False >>>> mail.settings.login ='fakeid425s...@gmail.com:secret' >>>> >>>> >>>> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/CU_1qWYixjI/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > akash.wanteds > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.