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: > > 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 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 >> > -- 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.