> 
> So, do I have to combine both to send a mail? Isn't there simply
> something like
> 
> Mail::send_mail(from, to, subject, body) ?
> 

     def mail(body, headers)

         require 'rmail'
         require 'net/smtp'

         mail = RMail::Message.new()

         headers.each do |key, value|
             mail.header.set(key, value)
         end

         mail.body = body

         smtp_server = Net::SMTP.new('localhost')
         smtp_server.start(['localhost']) do |smtp|
             smtp.sendmail(mail.to_s, headers['From'], headers['To'])
         end

     end