From 243a7dce87b90c8f3bee3835ff63aed8ee3673a6 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Thu, 12 Oct 2023 14:04:54 +1100 Subject: [PATCH] Email sending --- FIT5032-Assignment/Controllers/HomeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FIT5032-Assignment/Controllers/HomeController.cs b/FIT5032-Assignment/Controllers/HomeController.cs index 1959c03..3a03123 100644 --- a/FIT5032-Assignment/Controllers/HomeController.cs +++ b/FIT5032-Assignment/Controllers/HomeController.cs @@ -394,7 +394,7 @@ namespace FIT5032_Assignment.Controllers { request.AddParameter("to", model.patientEmail); request.AddParameter("subject", "Xpectrum: New image available"); request.AddParameter("text", $"Hi {patient.First().displayName},\n\nDr. {doctorName} has uploaded a new image for you.\n\nPlease check the attachment.\n\nBest regards,\nXpectrum"); - // request.AddFile("attachment", filePath); + request.AddFile("attachment", filePath); // Send request var response = await client.ExecuteAsync(request);