I'm working on a PHP project that contains multiple instances of calls to the built-in method mail(), and I'm tasked with replacing all of those calls with matching SwiftMailer implementation of sending an email (creating the mailer, the message and finally executing send()).
I wanted to check if there is existing code which accomplishes this job as an adapter/mediator between the two, or if I'm gonna have to write it myself. Thanks for the help.