I'm using this API to send emails in my application : https://github.com/mailin-api/sendinblue-api-bundle
I would like to send an email to myself every time a critical error occurs. I checked on this page : http://symfony.com/doc/current/logging/monolog_email.html
But I couldn't figure out how to send my emails without swift.
edit: I have to edit my question to tell that an answer about how to log into a database is not responding to my question about how to send an email through a specific api. Well, it doesn't.
Thank you