start on news mailer

This commit is contained in:
2023-02-11 12:07:01 +02:00
parent cee41a571e
commit b5a63df629
13 changed files with 78 additions and 5 deletions
+1
View File
@@ -1,4 +1,5 @@
class ApplicationMailer < ActionMailer::Base
default from: "[email protected]" , bcc: "[email protected]"
layout "mailer"
end
+1 -1
View File
@@ -1,7 +1,7 @@
class FormMailer < ApplicationMailer
default from: "[email protected]" , bcc: "[email protected]"
def received(data)
def received(data )
@data = data
mail(to: data['Email'] , subject: "We have received your request")
end
+22
View File
@@ -0,0 +1,22 @@
class NewsMailer < ApplicationMailer
helper Merged::ViewHelper
def letter
@page = Merged::Page.find_by_type("blog")
mail( to: "[email protected]" )
end
def subscribed
@greeting = "Hi"
mail to: "[email protected]"
end
def unsubscribed
@greeting = "Hi"
mail to: "[email protected]"
end
end