Created
September 19, 2012 17:57
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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