hubfeenix.fi/app/mailers/news_mailer.rb
2023-02-11 12:07:01 +02:00

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