[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Trouble Sending Emails

Peña, Botp

9/6/2007 4:03:00 AM

From: Matt White [mailto:whitethunder922@yahoo.com]
# irb(main):003:0> body = "Subject: Product Import
# succeeded for supplier #{supplierid} at #{Time.now.to_s}\r\n\r\n"
# => "Subject: Product Import succeeded for supplier 8 at Wed
# Sep 05 09:25:26 -0600 2007\r\n\r\n"
# irb(main):004:0> Net::SMTP.start(mail_server, 25,
# helo_domain, username, password, :login) do |smtp|
# irb(main):005:1* smtp.send_message(body,
# from_address, to_address)
# irb(main):006:1> end
# => "250 Ok: queued as 20F73116D1AA\n"

at this point
a. the server mail_server received your email (w ack 250 Ok)
b. and further replied that it queued your mail w queueid 20F73116D1AA
(surely that reply and the queueid did not come fr ruby, right?)

ergo your ruby script is fine.

# ...but the mail never arrives. Thanks for any assistance!

it arrived on mail_server.

your mail admin can better help you.

kind regards -botp

1 Answer

Matt White

9/6/2007 5:44:00 PM

0

On Sep 5, 10:03 pm, Pe?a, Botp <b...@delmonte-phil.com> wrote:
> From: Matt White [mailto:whitethunder...@yahoo.com]
> # irb(main):003:0> body = "Subject: Product Import
> # succeeded for supplier #{supplierid} at #{Time.now.to_s}\r\n\r\n"
> # => "Subject: Product Import succeeded for supplier 8 at Wed
> # Sep 05 09:25:26 -0600 2007\r\n\r\n"
> # irb(main):004:0> Net::SMTP.start(mail_server, 25,
> # helo_domain, username, password, :login) do |smtp|
> # irb(main):005:1* smtp.send_message(body,
> # from_address, to_address)
> # irb(main):006:1> end
> # => "250 Ok: queued as 20F73116D1AA\n"
>
> at this point
> a. the server mail_server received your email (w ack 250 Ok)
> b. and further replied that it queued your mail w queueid 20F73116D1AA
> (surely that reply and the queueid did not come fr ruby, right?)
>
> ergo your ruby script is fine.
>
> # ...but the mail never arrives. Thanks for any assistance!
>
> it arrived on mail_server.
>
> your mail admin can better help you.
>
> kind regards -botp

Thanks for the help. I will have the server admin look into it for me.