Questions tagged [action-mailbox]
20 questions
8
votes
2 answers
Rails 6: How to disable Action Mailbox and Action Text from loading into Memory?
I want a new Rails 6 app without Action Mailbox or Action Text, so I create one with
rails new myapp --skip-action-mailbox --skip-action-text
I then remove them in application.rb
But when I run bundle exec derailed bundle:mem it shows that they are…

Jun Dalisay
- 1,165
- 2
- 12
- 26
7
votes
1 answer
How to set up Ruby on Rails Action Mailbox with Amazon SES?
I'm trying to migrate the email sending and receiving service from another mail provider to Amazon SES. The action mailer is working fine, but I tried for a while and didn't find any documentation on how to receive emails with SES, except some blog…

namelos
- 133
- 1
- 1
- 6
7
votes
3 answers
Rails 6 Action Mailbox and Gmail Integration How To
Rails 6 comes with Action Mailbox now. The documentation and community do not have great resources on how to integrate various services outside of the most common such as SendGrid.
Assuming a person uses Google's Gsuite Gmail:
How could they…

karns
- 5,391
- 8
- 35
- 57
3
votes
2 answers
How to handle forwarded e-mails in Rails ActionMailbox?
We are using Rails 7 to build an application which, amongst other features, should perform some actions when e-mails are sent to one of its e-mail addresses (which have, for instance, the format ticket-{uuid}@ourdomain.com).
Rails' ActionMailbox's…

Qqwy
- 5,214
- 5
- 42
- 83
3
votes
0 answers
Rails 6 + ActionMailbox (mail.decoded) fails with emoji any other unexpected inputs
I'm trying to get plain simple text (no HTML) from email.
It works when I send email with plain text such as "hey this works fine"
It doesn't work when I include an emoji in the email body and it gives the error below in…

Designer
- 1,061
- 1
- 12
- 26
2
votes
0 answers
Removing redundant routes from Action Mailbox
I am using Action Mailbox and have configured it to use Sendgrid. However my routes are now polluted with with inbound end points for other services like Mailgun etc.
They are defined, in the action mailbox gem like so:
post…

Rimian
- 36,864
- 16
- 117
- 117
1
vote
1 answer
Content of bounced emails in tests for Action Mailbox
How can I check the content of a bounced email?
require "rails_helper"
RSpec.describe EventsMailbox do
it "requires a current user" do
expect(mail_processed).to have_bounced
# here I would like to check the content of the bounced email
…

Dorian
- 7,749
- 4
- 38
- 57
1
vote
1 answer
How to decode an email with embedded images in Ruby/Rails Action Mailbox
I am using Action Mailbox, to receive emails in my Rails application. When the emails contain images, I am not sure, how to save the email in the database, decode it, and then display it to the user so that it can be displayed like how we see emails…

Neeraj Shukla
- 1,271
- 11
- 13
1
vote
1 answer
Is it possible to forward the mail object in Action Mailer
We're currently letting users email each other without seeing each other's actual email addresses (double blind) by letting them send emails to username@parse.example.com which works great.
class ForwardsMailbox < ApplicationMailbox
…

vince
- 2,374
- 4
- 23
- 39
1
vote
1 answer
Proxy model django from package
I have a problem in my code
from mailbox import Message
from django.db import models
from django.conf import settings
class MyMessage(Message):
class Meta:
Proxy = True
def creattask(self):
task =…

ZouhairNj
- 11
- 2
0
votes
0 answers
Rails ApplicationMailbox not routing on staging - ActionMailbox
So I added a mailbox to my app using Rail's ActionMailbox. It's set the following way:
A small email server: basically a docker image running Postfix behind a rails-api application with ActionMailbox set-up. Very similar to this:…

ntonnelier
- 1,539
- 3
- 23
- 49
0
votes
0 answers
Rails Action Mailbox Deliver Later Not Keeping Active Record Changes (Instance property values)
I am using rails 6 with action mailbox and want to send an email that shows the user changes made to a model. Rails has "dirty" methods such as record.changes which shows original value and new value. However, this is stored in the instance and is…

karns
- 5,391
- 8
- 35
- 57
0
votes
1 answer
Rails ActionMailBox: 422 Unprocessable Entity "Service name can't be blank"
I am trying to setup RailsAction Mailbox to deliver inbound emails but when I go to send the request I am getting failure. Here is the error from logs:
13:39:20 web.1 | Started POST "/rails/conductor/action_mailbox/inbound_emails" for
::1 at…

nomad
- 45
- 9
0
votes
1 answer
Ngrok - Action Mailbox send me a 403 Forbidden
I want to receive and parse emails from my Rails application using Action Mailbox. In local, everything works fine.
I then wanted to try sending email from my Gmail account and needed to set up Sendgrid and Ngrok. To do so, I've followed the…

HBadaw
- 1
- 2
0
votes
1 answer
Testing Action Mailbox controller using raw email source
I'm having a problem where email attachments aren't coming through for certain emails, but are for others. I'm trying to figure out what's different about the emails that aren't working.
Is it possible to write a test for an Action Mailbox…

Jason Swett
- 43,526
- 67
- 220
- 351