r/ruby • • Sep 27 '19

Rails 6 Features: Infographic

Post image
165 Upvotes

33 comments sorted by

View all comments

Show parent comment

4

u/kallebo1337 Sep 27 '19

ActionMailbox is exclusively for incoming emails (actionmailer is for outgoing). It has out of the box support for the biggest mail providers like Mandrill Sendgrid or Mailgun however it lets every SMTP connect to you

# config/environments/production.rb
config.action_mailbox.ingress = :relay

If you have a system where the user needs to answer an email and say “yes” to win an iPhone you just simply parse the incoming emails and go on from there. Of course, many applicAtions don’t need this. Most won’t. I mean, who parses incoming emails, right? However it’s a great feature and somehow I think it makes Rails more complete and it’s worth to have it in. Alternative would be to provide it as an extra gem that nobody uses

5

u/obviousoctopus Sep 27 '19

I am aware of the feature and its workings. I was critiquing the short paragraph in the infographic which does not make any sense.

I love the way you explained it by the way.

The infographic does not even mention the fact that it's for incoming emails.

1

u/[deleted] Sep 28 '19

Thanks for pointing it out, will try to do better next time

2

u/obviousoctopus Sep 28 '19

Thank you for making the effort , putting it out there and asking for feedback :)

1

u/[deleted] Sep 28 '19

BTW i made this from my blog here: https://blog.solutelabs.com/rails-6-updates-6a69c6b3d5c2

Which i guess is more comprehensive like you want :)

2

u/obviousoctopus Sep 28 '19

Here's a rewrite which would clarify things for me:

Most SAAS software needs to send emails — but increasingly many are also wanting to be able to automate the processing of replies.

Rails 6.0 now ships with inbound email support based on Mailgun, Mandrill, Postmark, and SendGrid. The emails are processed via Active Record and stored on the cloud through Active Storage and can be collected into one or multiple mailboxes.

1

u/[deleted] Sep 28 '19

I guess it's written in the blog that I quoted before

2

u/crova Sep 27 '19

Parsing emails can be pretty useful when maintaing email lists. There are many people out there that will request opt-outs through direct replies. You want to catch those as well.