mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "AM guide: standarizes call to rails runner"
This reverts commit d2844b854b
.
This commit is contained in:
parent
4bd37dadc4
commit
17596beb89
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ Receiving and parsing emails with Action Mailer can be a rather complex endeavou
|
|||
|
||||
* Implement a +receive+ method in your mailer.
|
||||
|
||||
* Configure your email server to forward emails from the address(es) you would like your app to receive to +rails runner 'UserMailer.receive(STDIN.read)'+.
|
||||
* Configure your email server to forward emails from the address(es) you would like your app to receive to +/path/to/app/script/rails runner 'UserMailer.receive(STDIN.read)'+.
|
||||
|
||||
Once a method called +receive+ is defined in any mailer, Action Mailer will parse the raw incoming email into an email object, decode it, instantiate a new mailer, and pass the email object to the mailer +receive+ instance method. Here's an example:
|
||||
|
||||
|
|
Loading…
Reference in a new issue