Please do not reply to me privately but to the mailinglist!
Am 28.09.2017 um 10:30 schrieb Aqib Hameed:
> receive to |/path/to/app/bin/rails runner 'UserMailer.receive(STDIN.read)'|.
> where i should run this command and where define outgoing server
> configuration ???
This totally depends on which MTA/MUA you are using, you need to
configure it in the MTA/MUA you are using and how you do it totally
depends on the software uised. Perhaps someone else is able to help you
after you have provided necessary information.
> On Thu, Sep 28, 2017 at 12:52 PM, Norbert Melzer <
timm...@gmail.com
> <mailto:
timm...@gmail.com>> wrote:
> <
http://guides.rubyonrails.org/action_mailer_basics.html#receiving-emails>.
> > But i am not able to understand what should it means
> > "Configure your email server to forward emails from the
> address(es) you
> > would like your app to receive to |/path/to/app/bin/rails runner
> > 'UserMailer.receive(STDIN.read)'|."
> > Is there any screen-cast which explain these things ???
>
> I'm not sure if there is a screencast explaining this, but basically it
> means, that you have to tell your *locally run* mail transfer agent, to
> pipe all mails that should be handled by your rails app to the
> mailhandler.
>
> If you were writing a bash script doing this and the mailcontent is in
> the variable `$MAILCONTENT` it were roughly like this:
>
> ```
> echo $MAILCONTENT | /path/to/app/bin/rails runner \
> 'UserMailer.receive(STDIN.read)'
> ```
>
> How to do this exactly does massively depend on the MTA you use.
>
> Of course you do not need to run a mailserver locally, any scriptable
> headless client should do as well. But I do asume that the guide is does
> asume that the application runs on the exact same server that handles
> emails for the domain as well.
>
>