In the previous code implementation the mail functionality was implemented using SmtpClient("smtp.office365.com"). and the image path was retrieved from Keyvault and implemented as below.
public void MailSend(){
SmtpClient SmtpServer = new SmtpClient("smtp.office365.com");
MailMessage message = new MailMessage();
message.Attachments.Add(new Attachment(AzureVaultIntegrationLayer.RetrieveKeysFromKeyVault("Pic_Path")));
SmtpServer.Send(message);
}
Now in the current MS Graph API (mail.send API ) what would be the approach/implementation to pass this image from KeyVault in the message body.