add list unsubscribe
This commit is contained in:
parent
f9e33ec6b8
commit
b82e408351
|
@ -1,6 +1,7 @@
|
|||
require_dependency 'email_builder'
|
||||
|
||||
class InviteMailer < ActionMailer::Base
|
||||
default charset: 'UTF-8'
|
||||
include EmailBuilder
|
||||
|
||||
def send_invite(invite)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require_dependency 'email_builder'
|
||||
|
||||
class TestMailer < ActionMailer::Base
|
||||
default charset: 'UTF-8'
|
||||
include EmailBuilder
|
||||
|
||||
def send_test(to_address)
|
||||
|
|
|
@ -2,6 +2,8 @@ require_dependency 'markdown_linker'
|
|||
require_dependency 'email_builder'
|
||||
|
||||
class UserNotifications < ActionMailer::Base
|
||||
default charset: 'UTF-8'
|
||||
|
||||
include EmailBuilder
|
||||
|
||||
def signup(user, opts={})
|
||||
|
|
|
@ -12,6 +12,7 @@ module EmailBuilder
|
|||
if params[:add_unsubscribe_link]
|
||||
body << "\n"
|
||||
body << I18n.t("unsubscribe_link", params)
|
||||
headers 'List-Unsubscribe' => "<#{params[:user_preferences_url]}>"
|
||||
end
|
||||
|
||||
mail_args = {
|
||||
|
|
Loading…
Reference in New Issue