hubfeenix.fi/app/mailers/news_mailer.rb

23 lines
324 B
Ruby
Raw Normal View History

2023-02-11 11:07:01 +01:00
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