public static void SendMailFromPoco([Outlook(
                                          Identity = TokenIdentityMode.UserFromId,
                                          UserId = "sampleuserid")] out MessagePoco message)
 {
     message = new MessagePoco();
     //See https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/message for a json
     //representation. Note that a "recipient" or "recipients" field takes the place of the ToRecipient field in
     //the schema, with "recipient" being a single object and "recipients" being multiple
 }
Ejemplo n.º 2
0
 public static void NoRecipients([Outlook] out MessagePoco message)
 {
     message            = GetMessageAsPoco();
     message.Recipients = new List <RecipientPoco>();
 }
Ejemplo n.º 3
0
 public static void SendPoco([Outlook] out MessagePoco message)
 {
     message = GetMessageAsPoco();
 }