<commit_before>## FFMail

This gem was built on top of `ActiveModel` to showcase how you can pull in validations, naming
and `i18n` from Rails to your models without the need to implement it all by yourself. It is based on mailform by plataformatec by <NAME>, one of the main contributors for Rails

### Description

**FFMail** is a simple way to include a contact form in your Rails website.

```ruby
class ContactForm < FFmail::Base
  attributes :name, :email, :message
  
  # Declare the e-mail headers, inherits from ActionMailer. 
  def headers
    {
      :to => "Your email goes here",
      :from => %("#{name}" <#{email}>)
    }
  end
end
```

If you want to check out how it works, just open a ruby console and type in:

```ruby
c = ContactForm.new(:name => 'Name', :email => "sender's email", :message => 'A message')
c.deliver
```

## Installation

To install this gem, add the following line to your Gemfile:

gem 'rrpdf', :git => git://github.com/eLobato/RRPDF.git

## I18n

FFMail includes I18n behavior extended from ActiveRecord.

## Spam protection

Include a 'nickname' field in your forms and hide it with CSS. Users won't fill it
but some bots will and it won't send the email if it's filled

## Thanks

Thanks to <NAME> for writing Crafting Rails Applications, an outstanding book that <commit_msg>New README<commit_after>## FFMail

This gem was built on top of `ActiveModel` to showcase how you can pull in validations, naming
and `i18n` from Rails to your models without the need to implement it all by yourself. It is based on mailform by plataformatec by <NAME>, one of the main contributors for Rails

### Description

**FFMail** is a simple way to include a contact form in your Rails website.

```ruby
class ContactForm < FFmail::Base
  attributes :name, :email, :message
  
  # Declare the e-mail headers, inherits from ActionMailer. 
  def headers
    {
      :to => "Your email goes here",
      :from => %("#{name}" <#{email}>)
    }
  end
end
```

If you want to check out how it works, just open a ruby console and type in:

```ruby
c = ContactForm.new(:name => 'Name', :email => "sender's email", :message => 'A message')
c.deliver
```

## Installation

To install this gem, add the following line to your Gemfile:

```ruby
gem 'rrpdf', :git => git://github.com/eLobato/RRPDF.git
```

## I18n

FFMail includes I18n behavior extended from ActiveRecord.

## Spam protection

Include a 'nickname' field in your forms and hide it with CSS. Users won't fill it
but some bots will and it won't send the email if it's filled

## Thanks

Thanks to <NAME> for writing Crafting Rails Applications, an outstanding book that 
{'fraction_non_alphanumeric': 0.09890524726311815, 'fraction_numerical': 0.004530011325028313, 'mean_word_length': 3.9074074074074074, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '33160', 'n_tokens_mistral': 830, 'n_tokens_neox': 782, 'n_words': 380}