From: Brian Candler Date: 2010-08-04T20:38:01+09:00 Subject: Re: net/smtp Dave Lilley wrote: > Okay I am officially stumped!!! It's because of the double newlines: you are adding \n as well as having the newline because the string is broken onto another line. You can see this in irb: >> msg = "From: nobody@localhost\n To: nobody@localhost\n\n\n Hello world" => "From: nobody@localhost\n\nTo: nobody@localhost\n\n\n\nHello world" Personally I'd use a heredoc: require 'net/smtp' module Sendemail def send_email(from, to, subject, message) # edited msg = <