Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.