Skip to content

Instantly share code, notes, and snippets.

@harukizaemon
Created August 25, 2010 09:49
Show Gist options
  • Select an option

  • Save harukizaemon/549205 to your computer and use it in GitHub Desktop.

Select an option

Save harukizaemon/549205 to your computer and use it in GitHub Desktop.
class ActionMailer::Base
def perform_delivery_file(mail)
File.open("#{RAILS_ROOT}/tmp/mails/#{mail.to}", 'a') { |f| f.write(mail) }
end
end
config.action_mailer.delivery_method = :file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment