webs / rock_mailer

an alternative of actionmailer

This URL has Read+Write access

name age message
file README.textile Loading commit data...
file init.rb
file install.rb
directory lib/
README.textile

rock_mailer — an alternative of actionmailer.

rock_mailer is an alternative of actionmailer. Released under the MIT licence.

Some code is from Sinatra.

Install


  script/plugin install git://github.com/webs/rock_mailer.git

rock_mailer use the configuration of ActionMailer.

Example

Mailers

Mailers are defined in app/mailers.


  mail :welcome do
    to        "jordan@lifeisdead.net"
    from      "noreply@rockmailer.com"
    subject   "HAI2U"
    attach        RAILS_ROOT + '/public/images/logo.jpg'
    add_header    "X-Mailer", "RockMailer lol!"
    set_header    "X-Mailer", "hahahhaha"
    remove_header  "X-Mailer"
  end

Views

The view for the mail “welcome” is app/views/mails/welcome.mail.erb :)

More to come!

rock_mailer is currently alpha. More to come, like HTML mails, params, …

Links


Copyright © 2007-2008 Jordan Bracco <jordan@lifeisdead.net>