[web2py] Re: Problems with mail.send()

2015-01-03 Thread Gael Princivalle
Hello I think I have a similar problem. With an ssl smtp server on port 587 email are going out. With a tls smtp server on port 25 web2py don't give me an error but mails are not sent. In model: mail = auth.settings.mailer mail.settings.server = 'zimbra.mydomain.com:25' mail.settings.sender = 's

[web2py] Re: Problems with mail.send()

2013-11-16 Thread Tim Richardson
book has a chapter "Helping web2py" which should help you help us :) http://www.web2py.com/books/default/chapter/29/15/helping-web2py tldr: tickets are filed via Google Code as "issues" Code-base is at github the chapter above has a recommended git workflow. cheers Tim -- Resources: - http://w

[web2py] Re: Problems with mail.send()

2013-11-14 Thread Kariloy Markief
Well I'm not sure where and how to open a ticket but in the meantime I search through the internet for a solution and then the source code and the answer lies in adding server.esmtp_features["auth"] = "LOGIN PLAIN" at the right place in Mail class at the gluon/tools.py file. for my current app

[web2py] Re: Problems with mail.send()

2013-11-13 Thread Massimo Di Pierro
No but open a ticket. Can you help make it happen? On Wednesday, 13 November 2013 10:45:36 UTC-6, Kariloy Markief wrote: > > Well, sorry to bring this back from the grave but after some hours > debugging I've come to realize that I'm having the same problem has > Bernardo. So I was wondering, ha

[web2py] Re: Problems with mail.send()

2013-11-13 Thread Kariloy Markief
Well, sorry to bring this back from the grave but after some hours debugging I've come to realize that I'm having the same problem has Bernardo. So I was wondering, has by any chance 'sasl_method=PLAIN' have been enabled as a possibility since then? Because, if so it isn't being obvious to me.

[web2py] Re: Problems with mail.send()

2010-12-02 Thread mdipierro
No but I can add that. I will take a look. On Dec 2, 4:35 am, Bernardo wrote: > Hi Massimo, > > I finally found where the problem is. It is something to do with the > SASL CRAM-MD5 authentification at server side. Just to debug purposes, > is there any way to use the 'sasl_method=PLAIN' when usin

[web2py] Re: Problems with mail.send()

2010-12-02 Thread Bernardo
Hi Massimo, I finally found where the problem is. It is something to do with the SASL CRAM-MD5 authentification at server side. Just to debug purposes, is there any way to use the 'sasl_method=PLAIN' when using mail.send()? thanks a lot, Bernardo On 1 dic, 23:38, Bernardo wrote: > All right. It

[web2py] Re: Problems with mail.send()

2010-12-01 Thread Bernardo
All right. It seems to load the certificate now. But... still not sending the mail. Now web2py prints the following line: WARNING:web2py:Mail.send failure:(535, '5.7.8 Error: authentication failed: authentication failure') The mail.log in the mail server shows the following lines: Dec 1 22:35:

[web2py] Re: Problems with mail.send()

2010-12-01 Thread mdipierro
You are using x509 signed emails. You set your certificates with: > mail.settings.x509_sign_keyfile = 'url_to_postfix.key' > mail.settings.x509_sign_certfile = 'url_to_postfix.cert' > mail.settings.x509_crypt_certfiles = 'url_to_postfix.cert' but they should not be urls, they should be full paths

[web2py] Re: Problems with mail.send()

2010-12-01 Thread Bernardo
More news Massimo, After following the execution of send method from Mail class, I found where it throws the exception that makes it return False. Those are my new mail settings: mail.settings.server = 'mydomain:25' # your SMTP server mail.settings.sender = 'berna...@mydomain.com' # your

[web2py] Re: Problems with mail.send()

2010-12-01 Thread Bernardo
Ok Massimo, I'll post if I find something. thanks a lot!! Bernardo On 1 dic, 19:30, mdipierro wrote: > web2py is failing to connect and send the email. Something is wrong in > the settings. To debug, you can try add something some print > statements inside the class Mail send function. Sorry I

[web2py] Re: Problems with mail.send()

2010-12-01 Thread mdipierro
web2py is failing to connect and send the email. Something is wrong in the settings. To debug, you can try add something some print statements inside the class Mail send function. Sorry I do not have a better advice. On Dec 1, 12:27 pm, Bernardo Botella Corbí wrote: > It prints > > False > > Bern

Re: [web2py] Re: Problems with mail.send()

2010-12-01 Thread Bernardo Botella Corbí
It prints False Bernardo 2010/12/1 mdipierro > try from the shell > > python web2py.py -A yourapp -N -M > > print mail.send(to="@...", message="", subject="...") > > Massimo > > On Dec 1, 11:55 am, Bernardo wrote: > > Hi Massimo, > > > > thanks for your reply. I connected without prob

[web2py] Re: Problems with mail.send()

2010-12-01 Thread mdipierro
try from the shell python web2py.py -A yourapp -N -M print mail.send(to="@...", message="", subject="...") Massimo On Dec 1, 11:55 am, Bernardo wrote: > Hi Massimo, > > thanks for your reply. I connected without problems using telnet on > port 25 > > >telnet mydomain.com 25 > > Connect

[web2py] Re: Problems with mail.send()

2010-12-01 Thread Bernardo
Hi Massimo, thanks for your reply. I connected without problems using telnet on port 25 >telnet mydomain.com 25 Connected to mydomain.com. Escape character is '^]'. 220 mydomain.com ESMTP Postfix (Ubuntu) EHLO mydomain.com 250-mydomain.com 250-PIPELINING 250-SIZE 1024 250-ETRN 250-STARTTLS 2

[web2py] Re: Problems with mail.send()

2010-12-01 Thread mdipierro
try telnet mail.mydomain.com 25 and see if it is accepting remote connections (by defau postfix does not). Also I think mail.settings.login = 'berna...@mydomain.com:mypass' should be mail.settings.login = 'berna...:mypass' On Dec 1, 5:44 am, Bernardo wrote: > Dear all, > > I don't know if it