Email sending
This commit is contained in:
parent
8155446527
commit
243a7dce87
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user