23 lines
324 B
Ruby
23 lines
324 B
Ruby
class NewsMailer < ApplicationMailer
|
|
helper Merged::ViewHelper
|
|
|
|
def letter
|
|
@page = Merged::Page.find_by_type("blog")
|
|
|
|
mail( to: "to@example.org" )
|
|
end
|
|
|
|
def subscribed
|
|
@greeting = "Hi"
|
|
|
|
mail to: "to@example.org"
|
|
end
|
|
|
|
def unsubscribed
|
|
@greeting = "Hi"
|
|
|
|
mail to: "to@example.org"
|
|
end
|
|
|
|
end
|