Thursday, January 31, 2008

My first open source rails plugin: SafeDevEmail


I just finished up the initial version of my first open source rails plugin. It is a fairly simple plugin which allows you to configure an email address that will receive all emails sent from your rails app while it is in development mode.


The plugin is available at code.google.com/p/safedevemail/.

To get started all you need to do is drop the plugin in your vendor/plugins directory and edit your mailserver settings in evironment.rb

Config Examples:

SMTP


ActionMailer::Base.smtp_settings = {
:address => "smtp.example.com",
:port => 25,
:domain => "www.mywebsite.com",
:dev_mailto => "developer@mywebsite.com"
}

Sendmail


ActionMailer::Base.sendmail_settings = {
:dev_mailto => "developer@mywebsite.com"
}

No comments: