From: Brian Candler Date: 2010-08-05T17:01:55+09:00 Subject: Re: net/smtp You must not put spaces before the Subject: header. Align your text with the left-hand column. Using a heredoc with minus sign, you are allowed to indent the terminating symbol: msg = <<-EOS Subject: foo etc EOS But you still need to align the text itself to the left-hand edge. If you don't think that's pretty, then you could use gsub to remove the leading spaces. (Incidentally, you said you were using a heredoc, but the code you posted wasn't) -- Posted via http://www.ruby-forum.com/.