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: <[email protected]>

RCPT TO: <[email protected]>

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 telnet. Does that
work?

Bernardo


2010/12/4 Miguel Lopes <[email protected]>

> Hi Bernado,
>
> 2010/12/4 Bernardo Botella Corbí <[email protected]>
>
> 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 silently.
> I can use a gmail account to send the email it works, so perhaps I'm
> configuring gluon.tools.Mail wrongly:
> mail.settings.server = 'myIP:25'                            # your SMTP
> server
> mail.settings.sender = '[email protected]'         # your email
> mail.settings.login = 'user:pass'                           # your
> credentials or None 'username:password'
>
> I'm unsure about mails.settings.server. Is this correct?
>
>
>> (if you are in ubuntu/debian, don't know where it would be in other
>> distributions...)
>>
>> I'm using Debian Lenny.
>
> txs,
> Miguel
>
>

Reply via email to