Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-05 Thread Bernardo Botella Corbí
Hi, did you try to send a mail from telnet? telnet localhost 25 (this connects to your smtp server) EHLO mail.example.com MAIL FROM: y...@example.com RCPT TO: destinat...@example.com data # enter message bodyand end with a line with only a full stop. blah blah blah more blah . with this

[web2py] Re: minimal setup on Debian for using Mail()

2010-12-05 Thread José L .
On 4 dic, 21:54, Miguel Lopes mig.e.lo...@gmail.com wrote: Hi Bernado, 2010/12/4 Bernardo Botella Corbí estem...@gmail.com Hi Miguel, which test did you do from command line? does web2py print something? Any error? Try to do the next thing from the command line: tail -f

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-05 Thread Miguel Lopes
Ok. Solved! It was really just a configuration issue: mail.settings.server = 'localhost:25'# I wasn't referring to the server properly! mail.settings.sender = 'whatever.m...@yourdomain.com' # your email with this setup I can send email with sendmail from web2py.

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-04 Thread Bernardo Botella Corbí
Hi Miguel, which test did you do from command line? does web2py print something? Any error? Try to do the next thing from the command line: tail -f /var/log/mail.log (if you are in ubuntu/debian, don't know where it would be in other distributions...) and see if it complaints about anything

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-04 Thread Miguel Lopes
Hi Bernado, 2010/12/4 Bernardo Botella Corbí estem...@gmail.com Hi Miguel, which test did you do from command line? does web2py print something? Any error? Try to do the next thing from the command line: tail -f /var/log/mail.log If I try to send mail from web2py using local resources

[web2py] Re: minimal setup on Debian for using Mail()

2010-12-03 Thread mdipierro
did you apt-get install portfix? On Dec 3, 6:36 pm, Miguel Lopes mig.e.lo...@gmail.com wrote: I'm having problems trying to make gluon.tools.Mail work on a vps, and wonder if anyone knows what would be a minimal setup for sending mail. I just need to send the an occasional mail. The server as

Re: [web2py] Re: minimal setup on Debian for using Mail()

2010-12-03 Thread Miguel Lopes
On Sat, Dec 4, 2010 at 1:12 AM, mdipierro mdipie...@cs.depaul.edu wrote: did you apt-get install portfix? Do you mean postfix? No I didn't. By the way, tp be precise in the config I'm using: mail.settings.server = 'myIPaddress:25' # your SMTPserver since sendmail