Forum Discussion
Send an email from SPFx client-side webpart
Hi Community Members,
I am trying to create an SPFx client-side webpart which would be used to send an email from the logged in user account.
I have been testing the graph api send mail method but in any case I receive 403 Unauthorized error. On the other hand, I am able to get user information using the graph api method or even I am able to create an appointment on the user calendar, based on the Discuss Now SPFx extension sample published on the samples repository.
I do not want to use any other tools, like Flow, that it is used in this sample.
Any ideas on what could I do to send an email from an SPFx client-side webpart?
Thank you all in advance!
- How about pnp.js send email option? https://github.com/SharePoint/PnP-JS-Core/wiki/Working-With:-SP.Utilities.Utility
3 Replies
Thank you very much Juan Carlos and Vishwanatha! I've tried to use PnP-JS-Core and it works perfectly!!!
- Vishwanatha NayakBrass ContributorHow about pnp.js send email option? https://github.com/SharePoint/PnP-JS-Core/wiki/Working-With:-SP.Utilities.Utility