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