[web2py] Re: problem in sending mail

2013-12-04 Thread sonu kumar
Thanks Alan. It is working now..with this script from gluon.tools import Mail mail = Mail() mail.settings.server = 'localhost' mail.settings.sender = 'x...@xxx.org' mail.settings.login = None mail.settings.tls = None thanks On Wednesday, 4 December 2013 14:55:59 UTC-8, sonu kumar wrote: > >

[web2py] Re: problem in sending mail

2013-12-04 Thread sonu kumar
Hi Alan, I checked as you said..it gives mail.result ={} mail.error = gaierror(-2, 'Name or service not known') On Wednesday, 4 December 2013 14:48:00 UTC-8, Alan Etkin wrote: > > > as my IT dept told me that this smtp does not need any login...this smtp >> direct send mail and it is working fi

[web2py] Re: problem in sending mail

2013-12-04 Thread Alan Etkin
> as my IT dept told me that this smtp does not need any login...this smtp > direct send mail and it is working fine for them. But I don't know why it > is not working for me...Is there any mistake I am doing in my code?? > After mail.send(), check the values for mail.result and mail.error --