class Form::Mailers < MailForm::Base 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 def headers { :subject => "Website Contact", :to => "info@phcnetworks.net", :from => %("#{mailer_name}" <#{mailer_email}>) } end end