How to test sending emails from Rails app

2024-03-29 ruby rails
ActionMailer::Base.mail(
  from: "no-reply@lmlab.net",
  to: "someone@example.com",
  subject: "test",
  body: "test"
).deliver_now!