Skip to content

Instantly share code, notes, and snippets.

@sishen
Created September 19, 2012 17:57
Show Gist options
  • Save sishen/3751121 to your computer and use it in GitHub Desktop.
Save sishen/3751121 to your computer and use it in GitHub Desktop.
Sample configuration of mails_viewer to allow the mails real sent to "pragmatic.ly" domain
config.action_mailer.delivery_method = :file
config.action_mailer.file_settings = {
location: 'tmp/mails',
smtp_settings: {
address: "localhost",
port: 25,
domain: 'localhost.localdomain',
user_name: nil,
password: nil,
authentication: nil,
enable_starttls_auto: true
},
send_if: lambda { |mail| mail.destinations.select { |address| address =~ /@pragmatic.ly$/ }.any? }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment