Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

SP.Utility.Sendemail unable to send to multiple users #1920

Open
dineshtalekar777 opened this issue Oct 21, 2020 · 0 comments
Open

SP.Utility.Sendemail unable to send to multiple users #1920

dineshtalekar777 opened this issue Oct 21, 2020 · 0 comments

Comments

@dineshtalekar777
Copy link

dineshtalekar777 commented Oct 21, 2020

Unable to send mail to multiple users using pnp/sp/sputilities

I can CC to multiple users but unable to keep multiple users in to.

Below is the my code snippet.

`const emailProps: IEmailProperties = {
To: this._emailTo,
CC: template.emailCC,//this._emailCc,
BCC: this._emailBcc,
Subject: template.subject,
Body: template.body,
AdditionalHeaders: {
"content-type": "text/html"
}
};

sp.utility.sendEmail(emailProps).then((response) => {
console.log("Email Sent to! " + this._emailTo);
}).catch((i) => {

                });`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant