Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Mailerfallback

Mailerfallback

add a migration:

create_table :error_mails, :force => true do |t| t.text :message t.boolean :failure t.integer :email_id t.timestamps end

e.g.

ProjectMailer.with_fallback(:email_id => 1) do |mailer| mailer.deliver_notification end

e.g. In file: config/mail_servers.yml:

default: address: mail.example.com port: 25 domain: example.com user_name: test_user password: test_password

internal: address: internal.example.com port: 25 domain: example.com user_name: test_user password: test_password

Servers are tried using the ‘default’ first, and then alphabetically thereafter.

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'