22-07-21 04:28 PM
03-02-22 06:11 PM
03-02-22 06:19 PM
03-02-22 06:41 PM
// Create a new SendMailRequest instance and set the properties using our input values.
// NOTE: Empty collections (ex. BCC Addresses) will not be included in the serialized JSON.
SendMailRequest req = new SendMailRequest();
req.Message = new Message();
req.Message.Subject = Email_Subject;
req.Message.Body = new Body
{
ContentType = Email_Body_Content_Type,
Content = Email_Body_Content
};
req.Message.ToRecipients = ConvertAddressCollectionToList(To_Addresses);
req.Message.CcRecipients = ConvertAddressCollectionToList(CC_Addresses);
req.Message.BccRecipients = ConvertAddressCollectionToList(BCC_Addresses);
if ((File_Attachments != null) && (File_Attachments.Rows.Count > 0))
req.Message.Attachments = AttachFiles(File_Attachments);
else
req.Message.Attachments = null;
req.SaveToSentItems = Save_to_Sent_Items_Folder.ToString().ToLower();
// Set Request_Content to the serialized object instance.
Request_Content = JsonConvert.SerializeObject(req, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
Cheers,
03-02-22 06:48 PM
03-02-22 08:34 PM
03-02-22 09:26 PM
27-04-22 11:01 AM
Hi @ewilson
Late to the party here but I am trying to get the Graph API set up in the dev environment and could comply just use some help with how the Send Mail function works. A previous team set up the API infrastructure and as it stands I have the following inputs for the send mail function:
The body of the Send Mail Request simply states [Message JSON]
I have been told I need to generate the JSON using the JSON collection action but I don't even know what to include in the collection!
Thanks in advance
27-04-22 11:52 AM
27-04-22 12:04 PM
Thanks @ewilson
How would I get hold of the Microsoft Graph - Outlook asset?
Apologies, absolute novice with this Graph stuff!
Thanks
Elliot
27-04-22 12:13 PM