Last active
June 27, 2021 03:22
-
-
Save BasantPandey/05189832546f2c6cc0bd008fcfec3264 to your computer and use it in GitHub Desktop.
Send Email using SharePoint Rest API
are you sure this is working solution with external emails other the own domain?
"{"readyState":4,"responseText":"{"error":{"code":"-2130242040, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The e-mail message cannot be sent. Make sure the e-mail has a valid recipient."}}}","responseJSON":{"error":{"code":"-2130242040, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The e-mail message cannot be sent. Make sure the e-mail has a valid recipient."}}},"status":400,"statusText":"error"}"
SharePoint API doesn't allow posts to external emails. Must be an email of a SharePoint user email. This is as much as I know.
Can we add multiple email address dynamically for CC?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update Code with new fixes.