Skip to main content

How to use Action Mailbox in Rails 6 Discussion

General • Asked by Chris Oliver

This is great!

Can action mailbox be used with a gmail account or does it have to be one of the services listed?

https://github.com/rails/rails/blob/6-0-stable/actionmailbox/app/controllers/action_mailbox/ingresses/relay/inbound_emails_controller.rb

stmp protocol supported.

Gmail's Default SMTP Settings
Gmail SMTP server address: smtp.gmail.com
Gmail SMTP username: Your Gmail address (e.g. [email protected])
Gmail SMTP password: Your Gmail password
Gmail SMTP port (TLS): 587
Gmail SMTP port (SSL): 465
Gmail SMTP TLS/SSL required: yes

action mailbox guide: https://edgeguides.rubyonrails.org/action_mailbox_basics.html#introduction

Interesting. Thanks!


How difficult, assuming it’s possible, would it be to adjust this for receiving replies via SMS (to use the episode’s example)?

You can definitely do it, but you wouldn't be able to use ActionMailbox for that. You'd want to use something like Twilio and setup a controller to receive the webhooks they send. I've been planning on doing some Twilio stuff, so I'll have to do that soon!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 20,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.