class FormMailer < ApplicationMailer default from: "info@hubfeenix.fi" , bcc: "info@hubfeenix.fi" def received(data) @data = data mail(to: data['email'] , subject: "We have received your request") end end