Hi: I am trying to send an email from Squeak. I have ubuntu and postfix smtp server running in my local machine. I know postfix is running OK. I could do successfully the following test from a linux console:
220 Servidor ESMTP HELO localhost 250 Hello, please meet you MAIL FROM: destinomochila@gmail.com 250 Ok RCPT TO: matias_dolian@hotmail.com 250 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: Campo de asunto From: destinomochila@gmail.com To: matias_dolian@hotmail.com Hola, Esto es una prueba3. Adiós. . quit
However, when I try to do SMTPClient I do something like this:
| message sender recipients | message := 'From: DestinoMochila destinomochila@gmail.com To: You marianopeck@gmail.com Subject: Simple Mail from Squeak
This is a test mail'. sender := 'destinomochila@gmail.com'. recipients := #('marianopeck@gmail.com'). SMTPClient deliverMailFrom: sender to: recipients text: message usingServer: '127.0.0.1'
I have no errors, but the email is never send :(
This is the first time I try to use SMTPClient so perhaps I am doing something wrong.
Any idea?
Thanks in advance,
Mariano
Ok, it was a problem with gmail, as I could figure out from logs:
May 10 18:07:52 mariano-ubuntu postfix/smtp[20948]: 0BD8167ECD: to=< destinomochila@gmail.com>, relay=gmail-smtp-in.l.google.com[72.14.247.27]:25, delay=33, delays=0.02/0/1.8/31, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[72.14.247.27] said: 550-5.7.1 [190.174.233.43] The IP you're using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn more at http://mail.google 550 5.7.1 .com/support/bin/answer.py?answer=10336 5si5675126agc.55 (in reply to end of DATA command)) May 10 18:07:52 mariano-ubuntu postfix/qmgr[20945]: 0BD8167ECD: removed
On Wed, May 6, 2009 at 10:26 AM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
Hi: I am trying to send an email from Squeak. I have ubuntu and postfix smtp server running in my local machine. I know postfix is running OK. I could do successfully the following test from a linux console:
220 Servidor ESMTP HELO localhost 250 Hello, please meet you MAIL FROM: destinomochila@gmail.com 250 Ok RCPT TO: matias_dolian@hotmail.com 250 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: Campo de asunto From: destinomochila@gmail.com To: matias_dolian@hotmail.com Hola, Esto es una prueba3. Adiós. . quit
However, when I try to do SMTPClient I do something like this:
| message sender recipients | message := 'From: DestinoMochila destinomochila@gmail.com To: You marianopeck@gmail.com Subject: Simple Mail from Squeak
This is a test mail'. sender := 'destinomochila@gmail.com'. recipients := #('marianopeck@gmail.com'). SMTPClient deliverMailFrom: sender to: recipients text: message usingServer: '127.0.0.1'
I have no errors, but the email is never send :(
This is the first time I try to use SMTPClient so perhaps I am doing something wrong.
Any idea?
Thanks in advance,
Mariano
squeak-dev@lists.squeakfoundation.org