"Yes, that is possible. There are REST based APIs available which you can trigger from OSGI service.", Where does this start. I am asking the same question. I want to configure it so anytime AEM wants to send an "email" it calls my service (graph.microsoft.com) rather then default mail service in AE...