ActionMailer and Ramaze
问题 Is it possible to use ActionMailer in a web framework like Ramaze, or do I need to use Rails? 回答1: You can use ActionMailer without Rails quite easily. I'm not familiar with Ramaze, but here's plain ruby, which should be easy to integrate into whatever framework you wish: PATH/mailer.rb require 'rubygems' require 'action_mailer' class Mailer < ActionMailer::Base def my_email recipients "recipient@their_domain.com" from "me@my_domain.com" subject "my subject" body :variable1 => 'a', :variable2