I have email app set up in nextcloud. I can send and receive email through its interface.
Now I want to send email from another app - without using any interface - just plain PHP code. Like this:
sendMailUsingNextcloud(“receiver@someplace.com”,“The subject”,“Hello World”);