In the controller, I have:
mailer = MyReminderMailer.new
the mail program is as follows:
class MyReminderMailer < ActionMailer::Base
def change_email
mail(
from: default_from,
to: default_to,
subject: "..."
)
end
def default_from
return '...'
end
def default_to
return '...'
end
end
but got an error: private method `new 'called MyReminderMailer: Class
source
share