module PhcdevworksMailerForm class FormMailers < MailForm::Base # Mailer Fields attributes :mailer_name, :validate => true attributes :mailer_email, :validate => /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i attributes :mailer_department attributes :mailer_subject attributes :mailer_message attribute :mailer_captcha, :captcha => true # Mailer Header def headers { :subject => "Website Contact", :to => "info@phcnetworks.net", :from => %("#{mailer_name}" <#{mailer_email}>) } end end end