MailsViewer Rails 的邮件预览引擎 项目简介
MailsViewer 是一个Rails 的邮件预览引擎,提供了表格用来浏览 tmp/mails 下的所有邮件,可轻松的浏览非产品模式下的邮件。 配置方法: 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|
["[email protected]"].include?(address) }.any?
}
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|
["[email protected]"].include?(address) }.any?
}