Registry / web-framework / mail-form

mail-form

JSON →
library1.11.0rbrubygemsunverified

Send e-mail straight from forms in Rails with I18n, validations, attachments and request information.

gem install mail_form
INSTALL
IMPORT
SIG · MAIL-FORM
M
mail-form
web-frameworkrubyv1.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MailForm
✓ require 'mail_form'

Create and deliver a contact form email.

require 'mail_form' class ContactForm < MailForm::Base attribute :name, validate: true attribute :email, validate: /\A[^@]+@[^@]+\z/ attribute :message def headers { to: 'admin@example.com', subject: 'Contact Form' } end end form = ContactForm.new(name: 'John', email: 'john@example.com', message: 'Hello') form.deliver
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.11.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
mail-form — gem install mail-form · libregistry