February 2020
Intermediate to advanced
496 pages
12h 36m
English
Configuring Rails to receive emails requires three steps: initially setting up Action Mailbox, setting up Active Storage to hold the raw emails we receive, and implementing a mailbox, which is like a controller that handles incoming emails.
To set up Action Mailbox in our app, we’ll run a Rake task that will create some configuration files, a base mailbox class we’ll inherit from, as well as some database tables that Rails will use to store information about incoming emails. Let’s run the Rake task:
| | > bin/rails action_mailbox:install |
| | Copying application_mailbox.rb to app/mailboxes |
| | create app/mailboxes/application_mailbox.rb |
| | Copied migration ... |
Read now
Unlock full access