Thanks for all of the answers! I'll print them off and try to digest the enclosed wisdom. :) By the way, Dave, great book so far! Jamey. On Wednesday 13 December 2000 13:52, you wrote: > Kevin Smith <kevins14 / pacbell.net> writes: > > Here's my SMTP code (that works): > > > > smtp = Net::SMTP.start('mail.server.whatever') > > smtp.ready(from, to) do > > > > | a | > > > > message.each do > > > > | line | > > > > a.write(x + "\r\n") > > $stdout.write(x + "\r\n") #debugging > > end > > end > > In fact, that can be even simpler (but without the debugging) using > > Net::SMTP.start(server) do |smtp| > smtp.sendmail(message, from, [ to ]) > end > > Down in the guts of protocol.rb the code will add \r\n to lines that > are missing them. All 'message' has to do is respond to 'each'. > > > Regards > > > Dave