module SendgridNotification
  class SendmailJob < ActiveJob::Base
    queue_as :sendmail

    MailerClass = Rails.application.config.sendgrid_notification.mailer.constantize

    def perform(to, notification_mail, params)
      MailerClass.new.sendmail(to, notification_mail, params)
    end
  end
end

module SendgridNotification
  class SendmailJob < ApplicationJob
    queue_as :sendmail

    MailerClass = Rails.application.config.sendgrid_notification.mailer.constantize

    def perform(to, notification_mail, params)
      MailerClass.new(params).sendmail(to, notification_mail, params)
    end
  end
end

Modify SendmailJob to set mail_from, mail_from_name
Modify SendmailJob to set mail_from, mail_from_name
