```ruby
require 'action_mailer'
require 'action_mailer_cache_delivery'

#
# Simple mailer.
#
class Mailer < ActionMailer::Base
  def test_mail
    mail(from: 'from@test.com', to: 'to@test.com', subject: 'Test email')
  end
end # Mailer
```

Set body to test mailer
user
```ruby
require 'action_mailer'
require 'action_mailer_cache_delivery'

#
# Simple mailer.
#
class Mailer < ActionMailer::Base
  def test_mail
    mail(from: 'from@test.com', to: 'to@test.com', subject: 'Test email', body: 'Hello.')
  end
end # Mailer
```
assistant