class Aws::Rails::Mailer

def deliver!(message)

correctly. Called during mail delivery.
Rails expects this method to exist, and to handle a Mail::Message object
def deliver!(message)
  send_opts = {}
  send_opts[:raw_message] = {}
  send_opts[:raw_message][:data] = message.to_s
  if message.respond_to?(:destinations)
    send_opts[:destinations] = message.destinations
  end
  @client.send_raw_email(send_opts).tap do |response|
    message.header[:ses_message_id] = response.message_id
  end
end