-
I had previously set up smtp instead of sendmail by modifying config/environments/production.rb, but I lost those changes. Now I think I put them back correctly, but emails aren't sending, and I'm not sure why. Is there any way to test the mailer in the |
Beta Was this translation helpful? Give feedback.
Answered by
pixeldesu
Aug 20, 2023
Replies: 1 comment
-
You should be able to create an instance of Not exactly sure if it will work, but worth a shot maybe: @mailer = Retromail.new
# you can run `@mailer.smtp_settings` to look/set the currently applied SMTP settings
@mailer.mail(from: '[email protected]', to: '[email protected]', subject: 'test', body: "Hello, you've got mail!").deliver |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
greyidol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to create an instance of
Retromail
(our customized Devise mailer, the only mailer we actually use at the moment) in the Rails console and send an email with it.Not exactly sure if it will work, but worth a shot maybe: