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', 25)" returns the same
error "error: [Errno 13] Permission denied".
I also tried this in python command line on the server with the same
setting, which works fine.
On Tuesday, November 11, 2014 5:44:22 PM UTC+1, Leonel Câmara wrote:
>
> 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
> server is configured to allow, etc. It can be for many different reasons.
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.