Questions tagged [actionmailer]

Action Mailer is a framework for designing email service layers. Original ActionMailer is written in Ruby, but there is also implementation for ASP.NET MVC.

Action Mailer is a framework for designing email service layers. These layers are used to consolidate code for sending out forgotten passwords, welcome wishes on signup, invoices for billing, and any other use case that requires a written notification to either a person or another system.

Action Mailer is in essence a wrapper around Action Controller and the Mail gem. It provides a way to make emails using templates in the same way that Action Controller renders views using templates.

Additionally, an Action Mailer class can be used to process incoming email, such as allowing a blog to accept new posts from an email (which could even have been sent from a phone).

2387 questions
0
votes
0 answers

SSL issue when using custom domain as host for ActionMailer urls

My Rails App runs on Heroku. We registered a custom domain with GoDaddy, but let our SSL be handled automatically by Heroku. The bug occurs in the mailing process. In my production.rbfile, I assigned host = 'quouch-app.com' which is the custom…
0
votes
1 answer

Rails ActionView::MissingTemplate, Template Is Missing for mailer

I have a mailer class called ContactUsMailer that inherits from ActionMailer::Base. class ContactUsMailer < ActionMailer::Base default from: 'myemail@gmail.com' def contact_us(name:, email:, message:) @name = name @email = email …
Misha Krul
  • 321
  • 3
  • 13
0
votes
1 answer

"Inline Attachments" images are not shown in mail with Action Mailer

Regards! I'm trying to put Attachments Inline images into an Gmail email, but for some reason, images are not shown in the email's body. I have searched a lot on the Internet and all found answers say same way to do it. In my Mailer Class: def…
Johan Donado B.
  • 223
  • 3
  • 10
0
votes
1 answer

Why won't Rails' with_locale method allow additional URL parameters?

I've got this Mailer in my Rails 7 project: # app/mailers/quote_mailer.rb class QuoteMailer < ApplicationMailer def quote_mail(quote) @quote = quote @user = quote.user @client = quote.client @account = quote.account …
Tintin81
  • 9,821
  • 20
  • 85
  • 178
0
votes
0 answers

Option to show all headers for ActionMailer previews doesn't appear

I would like to see all of my headers in ActionMailer::Preview as described in this PR. I was not able to see them/make them appear in our company project, so I started a new project to reproduce the problem, where I cant see them either. I started…
0
votes
0 answers

Upgrade to rails 6.1.7.1 does not recognize the ActionMailer subclass in environments config

After upgrading our app from rails 5.2.8.1 to rails 6.1.7.1, the ActionMailer subclasses are not recognized in environments config. This is the error we recieved: uninitialized constant BulkMailer (NameError) Error Here are the setup…
0
votes
1 answer

how to add images to Rails email with full url path

I want to add images to an email template but don't want to add them inline but with the full path to their location on the server where the application is hosted. How can I do this in Rails 3 action mailer?
chell
  • 7,646
  • 16
  • 74
  • 140
0
votes
1 answer

Is there any way to confirm email delivery by smtp at Action Mailer?

Action mailer sends email through sendgrid with smtp settings, I can get delivery confirmation by sengrid's webhook, and some emails delivered to sengrid, some - looks like not, for example we sent 100 emails and sendgrid said that they got 97, so 3…
0
votes
1 answer

When sending one email, the log shows the email twice? Though it's sending only once?

in my app, DJ fires off a an email but for some reason I see the email in the log file twice though it is sent only once? I confirmed in the logs that DJ runs only once and user_mailer runs only once. So why do I see the email twice in the log file?…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
0
votes
1 answer

Testing mailers with Rspec and factory_bot

Hey guys, i need help, am new to testing and am testing my mailer but i do not understand y am getting this error when i run my tests. 'expected ActionMailer::Base.deliveries.size to have changed by 1, but was changed by 2' The emails are triggered…
0
votes
0 answers

SocketError (getaddrinfo: Name or service not known) while sending email using Proton Mail in rails

I'm getting error while the mail is getting deliver. When I changed the configuration in development.rb from proton mail to gmail for testing purpose then the email is getting sent. Meaning there's a particular problem in proton mail…
0
votes
1 answer

Adding custom META tag to ActionMailer email in Rails 2.3.8?

I'm sending an email using an ActionMailer class in Rails 2.3.8. I need to add a META tag to the HEAD of the email. Specifically, I want to add this (ultimately for handling special CSS3 on mobile devices):
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
0
votes
1 answer

Rails : how send an email at a specific date with Rails 7?

I have already read this thread (Send emails at specific times in Rails) which looks interesting but was written 8 years ago. Here is my need : I need to send an email at a specific date (a user birthday for instance). I would like to do it with…
0
votes
0 answers

Why are links inside my ActionMailer views not following the default settings?

I have a bunch of ActionMailer emails that are causing some of our users to hit a "Unsafe website" error message in their browser. In my production.rb I have this line config.action_mailer.default_url_options = {host: 'app.mybeautifulapp.com',…
ilrock
  • 573
  • 8
  • 24
0
votes
1 answer

ActionMailer SMTP working in production but not locally

Seems to be the opposite problem to a lot of the questions on here. I've not been able to get the mailers working locally but then I deployed my app to Heroku and everything is fine. No apparent errors when sending locally. Strangely though, I can…
Chris A
  • 863
  • 1
  • 10
  • 31