Skip to content

Commit

Permalink
Minor fixes for Guides v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Sep 29, 2015
1 parent 74d7406 commit 5eea23b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/guides/mailers/basic-usage.md
Expand Up @@ -8,7 +8,7 @@ In the [previous section](/guides/mailers/overview), we generated a mailer, let'

## Informations

As first thing we need to specify sender and recipient(s) and the subject of the email.
Firstly, we need to specify sender and recipient(s) and the subject of the email.
For this purpose a mailer expose three methods: `.from`, `.to` and `.subject`.

They all accept a string, but `.to` can also accept an array of strings in order to set multiple recipients.
Expand Down
10 changes: 6 additions & 4 deletions source/guides/mailers/delivery.md
Expand Up @@ -42,7 +42,7 @@ The same priciple applies if we want only to send textual emails, just remove HT

## Configuration

In order to specify the gateway to use for our email messages, we can use `delivery_method` configuration.
In order to specify the gateway to use for our email messages, we can use `delivery` configuration.

### Built-in Methods

Expand All @@ -63,8 +63,10 @@ The second optional argument is a set of arbitrary configurations that we want t
# ...
Lotus::Mailer.configure do
# ...
delivery_method do
production :stmp,
delivery do
development :test
test :test
production :stmp,
address: "smtp.gmail.com",
port: 587,
domain: "bookshelf.org",
Expand Down Expand Up @@ -95,7 +97,7 @@ require 'lib/mailers/mandrill_delivery_method'

Lotus::Mailer.configure do
# ...
delivery_method do
delivery do
production MandrillDeliveryMethod
api_key: ENV['MANDRILL_API_KEY']
end
Expand Down

0 comments on commit 5eea23b

Please sign in to comment.