require "mail" module DailyWeeklyMonthly class Notifier def initialize smtp_server, smtp_port @smtp_server = smtp_server @smtp_port = smtp_port end # rubocop: disable Metrics/MethodLength def call exception, deliver_to mail = Mail.new { from "backups@localhost" to deliver_to subject "Backup failed" body <