I'm trying to create an admin Tool where the admins can send emails that are already there with a button.
I have a class FamilyMailer < ActionMailer::Base
with this method birthdaymailer
Is there a way for me to trigger this from the view ?
I have seen a lot of answers on StackOverFlow, but it doesn't really work.
The closest conclusion I have came across is that the Mailer gets triggered this way FamilyMailer.birthdaymailer
in the view and create a return to main page.
I was wondering if there would be a better way.