Calling settings sendTestMail from occ


It would be convenient, for test purposes, to be able to call sendTestMail as found in apps/settings/lib/Controller/MailSettingsController.php via occ. I suppose it would also be possible craft a curl line and send the same request as apps/settings/js/admin.js #sendtestemail but that seems contorted when someone has access to occ and no need for the authentication step.

I’m curious to know if there already exists a way to do this. And if not, I’m interested to know if this is within the scope of occ or not.


1 Like