Custom Mail Agent

Has anyone created or know of documentation on how to create a custom
mail agent. I want to create one for Amazon SES so I want to find out
how to add a custom delivery agent to work with the mail gem.

All the standard delivery methods are added in action_mailer
\delivery_methods.rb and I’d like to do an equivalent call to
add_delivery_method but wouldn’t know where/how to do so in my app.