Ruby on Rails Thursday, September 28, 2017

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZzLRnAAoJELMYNofijuAHK2AP/1y9nY7J68ZbhRnm0bz7U2y0
mif0YMgMUhH3GuHS/LvHaSYZxsdivWF2QREGr/Hdc/izqAMl6xI3XXmf5n4tsi+C
VhEL7dp5hsBcGvUiapJn8hbKGKjEa4UsbMWcidgHSYgmOQcMf+liLyqUl6XOGbqP
kjd9ACxrgPeg6KwdaibYuQtM9bfZxmizEJiZvSvPUCReoKmEP89HwWm0KPb7x/0T
9tIxixFieydCq3e8IxJH7jB0Iu8LCQShet+7EZVj8Hvf2f2NOauzb1j8Hh12inLj
N3OY+B8ximUdtV4HCaE/eLvXxwJmKqcM52aq+6V5VPCJrStihhUXKmKmopIvw2f5
pk17UMY06LH3DZxkqyO4vNYpdAUDeInVsfclJtvYBr8q5hnBYIoaVDXL53f7Vftx
LiWwE7KH2nQBr4c1tGyiQf/PdZ4QHDiD2QN7q1JpCb8U/LUJRDWtriuxzxoq+Qo0
bqcyCWcLJGO9Z3h8GmSFqT+eITVksUpcgBtt5fumDyYRstsbJP7Zwmbn94s/mkoa
70Dzl5kUd3N4BVo6nOKibCqy2UzNeFUDfOBOFJxmlxSoyvMqNFuhAlGrHwqAQBm0
GoRQD7wierAjGhPAuVCqE6OkO4A3dEENpNs3Ycwxim4nmpscKAYx790lel0+g3RZ
sqB7+HtvRWqOkTuCd9pF
=xG+7
-----END PGP SIGNATURE-----
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 <timmelzer@gmail.com
> <mailto:timmelzer@gmail.com>> wrote:
>
> Am 28.09.2017 um 09:36 schrieb Aqib Hameed:
> > I am following this rails
> >
> guide http://guides.rubyonrails.org/action_mailer_basics.html#receiving-emails
> <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.
>
>


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f88285e5-5dcf-913f-c9e7-330fc6045998%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment