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

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

2010-12-05 Thread Miguel Lopes
Ok. here's the situation: I only have sendmail installed and running, no exim, postfix or other. I've checked this listing running services by using: netstat -tap I successfully sent email using telnet like Bernardo suggested. Since I have sendmail working, couldn't I use it with web2py, instead

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

2010-12-05 Thread José L .
On 4 dic, 21:54, Miguel Lopes wrote: > Hi Bernado, > > 2010/12/4 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 I try to

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: RCPT TO: data # enter message bodyand end with a line with only a full stop. blah blah blah more blah . with this lines you should be able to send a mail from

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

2010-12-04 Thread Miguel Lopes
Hi Bernado, 2010/12/4 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 I try to send mail from web2py using local resources it fails sil

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 whe

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 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 uses port 25 by defa

[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 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 sendmail working,