2,385 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
64
views
Route URL methods not defined in Rails Mailer tests
Rails 8, greenfield project with minimal changes to standard configurations. I have a host set in the test environment (included in the project generator boilerplate, I haven't modified it):
# config/...
1
vote
2
answers
66
views
Rails ActionMailer default-method used in two classes: What's the difference?
From the ActionMailer-Documentation:
# app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base
default from: "[email protected]"
# ...
end
... and ...
class ...
1
vote
0
answers
45
views
rails mailer does not percolate variables
The following method in Rails 8
if @message.save
puts @shop.inspect
CustomMailer.with(shop: @shop, message: @message).message_email.deliver_later
invokes the mailer to override the default SMTP ...
1
vote
2
answers
296
views
How to pass the current request id to ActiveJob and ActionMailer for tagged logging?
I want to improve the logging of my application. I use tagged logging with the request_id. Basically this is rails standard for production environments.
I'd like to know from where log lines from ...
3
votes
1
answer
2k
views
ActionMailer NoMethodError for preview_path
After upgrading from Rails 6 to 7, I'm getting this error when trying to test out a mailer that was working just fine before.
NoMethodError (undefined method `preview_path=' for ActionMailer::Base:...
0
votes
1
answer
122
views
ArgumentError: wrong number of arguments using ActionMailer with Ruby 3.2.2 / Rails 6.1.7.8
Using Ruby 3.2.2 and Rails 6.1.7.8 I'm getting an ArgumentError attempting to send an email. This previously worked using Ruby 2.7.8 and Rails 6.1.7.7.
RSpec tests that were previously passing are ...
0
votes
0
answers
117
views
Sendgrid's Inbound Parse works with Rails 7 Action Mailbox locally, gives 401 error code in production
I've been working on an Ruby on Rails app that allows you to assign tasks to users, who then get an email. Users can then reply to that task assignment email to update on task progress, which should ...
0
votes
1
answer
31
views
How to test that all ActionMailer preview actions render/do not fail?
My app has a lot of mailer actions and previews and I would like to automatically test that all listed mailer preview links respond with HTTP=200/do not fail rendering.
This should solve the problem ...
0
votes
1
answer
66
views
Why does RSpec Rails generate mailer fixtures?
I executed this command:
rails g mailer users/confirmations confirm_email
It generated this file at spec/fixtures/users/confirmations/confirm_email:
Users::Confirmations#confirm_email
Hi, find me in ...
2
votes
1
answer
3k
views
Google SMTP with App password suddenly stopped working March 19 2024
Nothing in code has changed. I am using Ruby on Rails Action Mailer sending via SMTP Google. I am using an App password, so according to my understanding of their documentations, the sunset of Less ...
0
votes
0
answers
369
views
Trouble sending emails using Action mailer in rails 7
I am having trouble sending emails via action mailer in rails 7 app. Now If I configure my action mailer using gmail, it works fine and sends emails as expected. The setting is following.
config....
0
votes
1
answer
56
views
Action Mailer - I don't manage to send an automatic email with Action Mailer, GMail and Rails
I work on Rails and Action Mailer. I created a form. When the visitors filled the form and sends it, it should trigger the sending of the form, record the form's data in my db, send an automatic email ...
0
votes
0
answers
100
views
Ruby on Rails 7 - Send inline image in email
I have a Ruby on Rails 7 app, running locally in development on my localhost:3000. I can send an email, but I would also like to include a logo image inside the email, inline, not downloadable ...
0
votes
1
answer
49
views
Why is Link in Rails Mailer Email Showing Incorrectly?
'Rails 6.1', 'ruby 3.1.1'
This is the first time I've added a link in an html email sent via a rails mailer. The email works, it's sent (to me) and I can see it. But the hyperlink in it is showing ...
0
votes
1
answer
155
views
Why can't I send emails from Rails in production using a typical ActionMailer config?
I had a look at 535-5.7.8 Username and Password not accepted in Rails Mailer using Gmail and their problem is similar to mine, and I'm not sure they got it resolved.
I set up 2fa with an app password ...