SOLVED

Send an email from SPFx client-side webpart

Brass Contributor

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!

3 Replies
best response confirmed by Ferran-Chopo (Brass Contributor)

Thank you very much Juan Carlos and Vishwanatha! I've tried to use PnP-JS-Core and it works perfectly!!!

 

1 best response

Accepted Solutions
best response confirmed by Ferran-Chopo (Brass Contributor)