It was caused by selinux. soloved by enabling the httpd_can_sendmail. Thank
you for all the help!
--
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 re
so the problem is that your server can't reach the smtp server. not a
web2py issue.
On Friday, November 14, 2014 11:39:28 AM UTC+1, Yang wrote:
>
>
> On Friday, November 14, 2014 12:37:19 AM UTC+1, Niphlod wrote:
>>
>> well, to be nerdy.
>>
>> import telnetlib
>> tn = telnetlib.Telnet(hostnam
On Friday, November 14, 2014 12:37:19 AM UTC+1, Niphlod wrote:
>
> well, to be nerdy.
>
> import telnetlib
> tn = telnetlib.Telnet(hostname, 25, 10)
>
>
> or (even better ?!)
>
> import socket
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.settimeout(2)
> try:
> s.connect(
well, to be nerdy.
import telnetlib
tn = telnetlib.Telnet(hostname, 25, 10)
or (even better ?!)
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(2)
try:
s.connect((host, 25))
print 'i can reach it'
except:
print "can't reach it"
On Wednesday
Well it would be easier to test stuff if you had telnet yes. You just need
the telnet client so it's not much of a security risk. If you have an
admin, however, you can just ask him to do his job and tell you what are
the correct settings for you app to be able to send emails since these
don't
Tried but telnet is not installed should I ask my administrator to
install it?
--
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 mess
Can you?
telnet mydomain 25
Does it connect?
--
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
Hello Leonel, thank you for your reply. Then how could I find the reason
for the failure?
I tried the way you suggested in this page:
https://groups.google.com/forum/#!searchin/web2py/mail.settings.hostname/web2py/pZT38v_s5OI/9Og3cQefLkkJ.
However, the code "server = smtplib.SMTP('mydomain', 2
That's not due to apache settings, that's due to the way you configured
web2py mail settings or your mail server configuration. Permission denied
can be caused because you didn't set mail.settings.login correctly, it can
be because you didn't set mail.settings.hostname to a hostname your mail
s
9 matches
Mail list logo