2

I have a piece of code, used to send mail using SharePoint Mail utility function, which is working fine.

$.ajax({
    contentType: 'application/json',
    url: urlTemplate,
    type: "POST",
    data: JSON.stringify({
        'properties': {
            '__metadata': {
                'type': 'SP.Utilities.EmailProperties'
            },
            'From': from,
            'To': {
                'results': [to]
            },
            'Body': body,
            'Subject': subject
        }
    }),

I just want to know how can I send same with CCing some one.

Akhilesh
  • 129
  • 1
  • 12

2 Answers2

4

Just add to your properties.

'CC': {
      'results': [CC]
    },

I hope it helps.

MSDN Reference

Vainktesh Kumar
  • 857
  • 7
  • 25
1

According to the documentation, there is a CC property you can use for this. Should be able to just add the additional property and set the value the same way you do for to.

theChrisKent
  • 6,001
  • 21
  • 34