Sha256: 3b9a30cf3d5d4342bec9ca6b75c65163ef25e37f188ca4b331f0b6856bfba16e

Contents?: true

Size: 666 Bytes

Versions: 17

Compression:

Stored size: 666 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phcdevworks_mailer_form-1.2.2 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.2.1 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.2.0 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.1.4 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.1.3 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.1.2 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.1.1 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.1.0 app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-1.0.0b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.5.0b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.2.0b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.1.0b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.0.7b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.0.6b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.0.5b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.0.4b app/models/phcdevworks_mailer_form/form_mailers.rb
phcdevworks_mailer_form-0.0.3b app/models/phcdevworks_mailer_form/form_mailers.rb