TMSFNCCloudMicrosoftOutlookMail Sending Mail as Application

Hi,
Is it possible to send mails via TTMSFNCCloudMicrosoftOutlookMail that are granted as Application with an access_token?

If I try so, I get the error "/me request is only valid with delegated authentication flow" which is correct because the url used should be https://graph.microsoft.com/v1.0/users/<udp>/sendMail instead of https://graph.microsoft.com/v1.0/me/sendMail.

2 Likes

Hi,

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.

We need also something to send as Application latest in Oktober. Dou you think you will be able to support this?

Hi,

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.

1 Like

Good feature that I need too!

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.

Hi,

Thank you for notifying.
The issue has been resolved and the update will be available with the next TMS FNC Cloud Pack release.

1 Like

Thanks, it works now.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.