Email sending

This commit is contained in:
Astrian Zheng 2023-10-12 14:04:54 +11:00
parent 8155446527
commit 243a7dce87

View File

@ -394,7 +394,7 @@ namespace FIT5032_Assignment.Controllers {
request.AddParameter("to", model.patientEmail); request.AddParameter("to", model.patientEmail);
request.AddParameter("subject", "Xpectrum: New image available"); 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.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 // Send request
var response = await client.ExecuteAsync(request); var response = await client.ExecuteAsync(request);