From: Toby Rodwell Date: 2010-05-02T21:04:52+09:00 Subject: Re: Sendmail, semicolons and new lines Robert Klemme wrote: > There is net/smtp in the standard library. > http://ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/index.html > Ah, very helpful and very useful, many thanks Robert. By using Net::SMTP.start(my_mail_server) { |smtp| smtp.send_message IO.read(my_dodgy_file), from_address, to_address } ... I'm getting the same result as before confirming your and Brian's position that this is not related to Sendmail (so I must have misread that 'sendmail' man page). I focused my attention on the file I'm feeding into Sendmail, and whilst I don't pretend to understand it, I find if I add two newlines ("\n\n") before my list of lines ending in semicolons then it works as desired. Plus, I now know how to quickly and easily send e-mail from Ruby without relying on other programs - nice! -- Posted via http://www.ruby-forum.com/.