class Mail::Sendmail
def old_deliver(envelope)
def old_deliver(envelope) smtp_from = envelope.from smtp_to = destinations_for(envelope) from = "-f #{shellquote(smtp_from)}" if smtp_from destination = smtp_to.map { |to| shellquote(to) }.join(' ') arguments = "#{settings[:arguments]} #{from} --" command = "#{settings[:location]} #{arguments} #{destination}" popen command do |io| io.puts ::Mail::Utilities.binary_unsafe_to_lf(envelope.message) io.flush end end