Apr 04 2019 11:37 AM - edited Apr 04 2019 11:57 AM
Hello All,
We're trying to build an spfx client-side webpart which should send a confirmation email to the user logged in (CC'in a mailbox) on a button click. I have tried Graph Api and pnp.js, and they both work great on my personal tenant where exchange online is enabled. But on our company prod tenant we do not have exchange online enabled.
Any idea if GraphApi/PnP.js has a dependency on enabling exchange online to send email.
Thank you all !
Apr 04 2019 02:39 PM
SolutionApr 05 2019 07:07 AM
SharePoint API doesn't allow posts to external emails.
Apr 05 2019 10:59 AM
Thanks, @Juan Carlos González Martín. As @imv1826 mentioned API is not allowing to posts to external emails.
Jun 07 2019 05:58 AM
I am trying to use the GraphAPI for sending mail through SPFX : SendAs. But things are not working for me. PFB the code example. Could you please post a sample of what you have implemented.
I have verified the 'SendAs' permission in EAC as well.
The error that I am getting clearly depicts that it is a permission issue, but I am not able to figure out .
"The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account".
My code :
Mail Message :
Jun 07 2019 06:23 AM
@pallavisharma Have you granted permissions to the account in Exchange Online to allow the Send As permission from the user?
Aug 20 2019 01:07 PM
Mar 23 2020 10:16 AM
@pallavisharma: any luck with this issue ?
Apr 04 2019 02:39 PM
Solution