Table of contents
TOC
Collapse the table of content
Expand the table of content

MailUtility.SendEmail Method

SharePoint Dev Documents|Last Updated: 5/19/2017
|
1 Contributor

Sends an email using the SharePoint SendEmail method

Namespace:OfficeDevPnP.Core.Utilities
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void SendEmail(ClientContext context, IEnumerable<String> to, IEnumerable<String> cc, String subject, String body)

Parameters

context

  Type: Microsoft.SharePoint.Client.ClientContext
  Context for SharePoint objects and operations

to

  Type: System.Collections.Generic.IEnumerable<System.String>
  List of TO addresses.

cc

  Type: System.Collections.Generic.IEnumerable<System.String>
  List of CC addresses.

subject

  Type: System.String
  Subject of the mail.

body

  Type: System.String
  HTML body of the mail.

Return Value

Type: void

See also

© 2018 Microsoft