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

Send email using html button javascript and Rails

Im new to using rails and i have a test where im given a code that send an email through a click and i have to compleate it, Here is the code: app/views/root/index.html.erb <%= form_tag root_path, class: "send-email" do %> <%= submit_tag "Click to…
0
votes
0 answers

Create custrom domain specific emails to send and receive emails in Rails 6+

I have a Rails6+ application, where I want the users to create custom emails that they can use to send and receive emails under my domain(mikesgh).For example users can create emails like anything@mikesgh.com, arnie@mikesgh.com. These emails should…
Milind
  • 4,535
  • 2
  • 26
  • 58
0
votes
0 answers

how to end email using Rails and js and html button?

Im new to using rails , and i am trying to figure out a solution to sending an email using an html button, javascript function and rails. HTML and JS code: <%= form_tag root_path, class: "send-email" do %> <%= submit_tag "Click to Send Email",…
0
votes
1 answer

ActionView is missing template in Preview. How to resolve?

I am currently trying to have ActionMailer send an email with Letter_Opener gem. When I try to view the preview with localhost:3000/mailer/order_mailer the terminal logs this error: app/mailers/order_mailer.rb:10:in `new_order_email' Started GET…
Mel
  • 1
0
votes
0 answers

Delete an email already queued through Action Mailer rails

Background: I have a job that runs every morning at 6am. This job itself either sends emails or queues emails. It depends on an appointment for a user. If an appointment is scheduled for that specific day, but there is no time associated with the…
kdweber89
  • 1,984
  • 2
  • 19
  • 29
0
votes
0 answers

Mailgun sending emails from sandbox in production

in my Mailgun settings I have 2 domains: sandbox and empresas.xxx.es. In my production.rb file, I've got it configured as shown: ActionMailer::Base.smtp_settings = { :port => ENV['MAILGUN_SMTP_PORT'], :address =>…
Gibson
  • 2,055
  • 2
  • 23
  • 48
0
votes
2 answers

In ruby on rails, how do you decode a content-transfer-encoding base64 Mail object

I am working on ruby on rails ActionMailer. What I have done is that I had a background process polling my gmail account and I retrieve mails with 'RFC822' protocol. I then send these mails to a receive method inside my ActionMailer class. While I…
Jacky
  • 49
  • 1
  • 5
0
votes
1 answer

ActionMailer with Rails: Missing template user_mailer/welcome with "mailer"

I get this error in my console when I run UserMailer.welcome.deliver_now irb(main):002:0> UserMailer.welcome.deliver_now UserMailer#welcome: processed outbound mail in…
jlandie
  • 21
  • 3
0
votes
0 answers

ActionMailer failed while using SMTP in production mode

Rails 7.0.1 I have tried and succeeded using ActionMailer in development environment, however it doesn't work in production environment. It seems that I am not able to receive the mail that I sent. Here is the success(able to send mail) code of…
0
votes
0 answers

Rails - image not rendering in mail

I'm Trying to attach an image in the ActionMailer... it rendering the image in the mailer preview but when i send to the actual server... the image is not rendering... when i inspect the path of the image it's shows the different path... can someone…
0
votes
1 answer

Why isn't my Rails 3 Action Mailer sending out an email when I'm trying to use activation through Sorcery?

I using sorcery for email activation and I've followed their wiki tutorial: https://github.com/NoamB/sorcery/wiki/User-Activation. I'm pretty sure the problem lies within sending out emails and less so towards activation because that is another…
Tony
  • 981
  • 5
  • 16
  • 30
0
votes
2 answers

Rails deliver_later getting Unsupported Argument Type

I have changed mail delivery in my Rails application to implement deliver_later instead of deliver_now, and am running into an error message from ActiveJob. The old mechanism was: mail_collection.each &:deliver_now The new mechanism…
Edward Caulfield
  • 448
  • 5
  • 12
0
votes
0 answers

Net::SMTPAuthenticationError: 535 5.7.139 The request did not meet the criteria to be authenticated successfully

I am trying to migrate my noreply mailer from Gmail to Office 365 but my SMTP setting is not working for Office 365. I already tried looking for solutions online like changing the SMTP auth from plain to login, using an app password, and enabling…
0
votes
2 answers

Rake test equivalent for ActionMailer::TestHelper?

We have recently migrated from sending emails with deliver_now to deliver_later. So that queued emails aren't lost when the system restarts, we implement this with Sidekiq. When we used deliver_now, our Rake tests could test the sending of an email…
Edward Caulfield
  • 448
  • 5
  • 12
0
votes
0 answers

Trying to extend ActionMailer::MessageDelivery

I would like to extend the MessageDelivery class in the ActionMailer module and am not successful in my attempts. From what I have read, it should be as simple as: module ActionMailer class MessageDelivery def deliver_at_next_time_interval…
1 2 3
99
100