From: "Tim L." Date: 2012-04-27T03:40:11+09:00 Subject: Re: net::smtp carriage returns I think I found an easier way to do this. I loaded the mail gem and used this code. Everything seems to work now. def sendMail File.open("diff.log", "w") do |d| d.flock(File::LOCK_EX) d.puts Diffy::Diff.new("#{@a[0]}", "#{@a[1]}", :source => 'files', :diff => "-b") d.flock(File::LOCK_UN) end mail = Mail.new do from 'firewall@home.com' to 'me@home.com' subject 'Firewall has changed since yesterday' body File.read('diff.log') end mail.deliver! end Thanks, Tim -- Posted via http://www.ruby-forum.com/.