require 'mail'

#
# You can use mandrillapp.com as smtp server, if you don't have one.
#

Mail.defaults do
  delivery_method :smtp, { :address              => "smtp address",
                           :port                 => port,
                           :domain               => 'domain',
                           :user_name            => 'username',
                           :password             => 'password',
                           :authentication       => nil,
                           :enable_starttls_auto => true  }
end


Mail.deliver do
 to "example@IMPORTANT.bot"
 from "IMPORTANT@example.bot"
 subject "just a test :D"
 body "just a test :D"
end