Currently it's only supported to send mails from the authenticated user account.
However this is a good suggestion and we'll investigate if the functionality to send mails as application can be added in a future version.
With the next TMS FNC Cloud Pack release an extra parameter AApplicationUserIdOrEmail will be available for the SendMessage / SendMailMessage methods.
If the AApplicationUserIdOrEmail parameter is not empty, the http request will be executed on the url https://graph.microsoft.com/v1.0/users/{AApplicationUserIdOrEmail}/sendMail.
This should allow you to send mails as Application.
Hi,
I just updated TMS FNC Cloud Pack.
When I try to send a mail, tms*********@outlook.com is used as AAplicationUserIdOrEMail parametervalue, instead of the value I pass in SendMessage.