form mailer
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
class ApplicationMailer < ActionMailer::Base
|
||||
default from: "from@example.com"
|
||||
default from: "info@hubfeenix.fi" , bcc: "info@hubfeenix.fi"
|
||||
layout "mailer"
|
||||
end
|
||||
|
8
app/mailers/form_mailer.rb
Normal file
8
app/mailers/form_mailer.rb
Normal file
@ -0,0 +1,8 @@
|
||||
class FormMailer < ApplicationMailer
|
||||
default from: "info@hubfeenix.fi" , bcc: "info@hubfeenix.fi"
|
||||
|
||||
def received(data)
|
||||
@data = data
|
||||
mail(subject: "We have received your request")
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user