当用户在收件箱中收到新邮件时,Mailboxer 会发送电子邮件通知。这很好,但是有些用户可能不想接收电子邮件。如何在视图中为将禁用“新消息”电子邮件通知的用户显示复选框选项?
邮箱.rb:
Mailboxer.setup do |config|
#Configures if you applications uses or no the email sending for Notifications and Messages
config.uses_emails = true
#Configures the default from for the email sent for Messages and Notifications of Mailboxer
config.default_from = "no-reply@mailboxer.com"
#Configures the methods needed by mailboxer
config.email_method = :mailboxer_email
config.name_method = :name
#Configures if you use or not a search engine and wich one are you using
#Supported enignes: [:solr,:sphinx]
config.search_enabled = false
config.search_engine = :solr
end