More improvements to registration, leaf input create, and charting

This commit is contained in:
2020-01-14 14:10:11 -05:00
parent 8452a9cce0
commit 046cda40b4
18 changed files with 180 additions and 77 deletions
+19 -8
View File
@@ -110,7 +110,7 @@ namespace LeafWeb.WebCms.Services
private void SendLeafWebSuccess(LeafInput leafInput)
{
var body = $"Your leaf analysis job, {leafInput.Identifier}, has completed. ";
var body = $"Your leaf analysis job '{leafInput.Identifier}' has completed. ";
body += FormatWarningMessage(leafInput);
@@ -119,13 +119,21 @@ namespace LeafWeb.WebCms.Services
if (downloadLink)
{
var downloadUrl = _urlService.GetDownloadUrl(leafInput);
var chartUrl = _urlService.GetChartUrl(leafInput);
body +=
"Download results with the following link:"
body +=
Environment.NewLine + Environment.NewLine
+ "Download results with the following link:"
+ Environment.NewLine + Environment.NewLine
+ downloadUrl;
var message = new MailMessage(_emailFromAddress, leafInput.Email, FormatSubject(SuccessSubject, leafInput), body);
body +=
Environment.NewLine + Environment.NewLine
+ "Chart results with the following link:"
+ Environment.NewLine + Environment.NewLine
+ chartUrl;
var message = new MailMessage(_emailFromAddress, leafInput.Email, FormatSubject(SuccessSubject, leafInput), body);
SendMessage(message);
}
//else
@@ -161,7 +169,7 @@ namespace LeafWeb.WebCms.Services
private void SendLeafWebError(LeafInput leafInput, string errorMessage)
{
var body = $"Your leaf analysis job, {leafInput.Identifier}, encountered the following errors." + Environment.NewLine
var body = $"Your leaf analysis job '{leafInput.Identifier}' encountered the following errors." + Environment.NewLine
+ Environment.NewLine + Environment.NewLine
+ errorMessage
+ Environment.NewLine + Environment.NewLine
@@ -175,7 +183,7 @@ namespace LeafWeb.WebCms.Services
public void SendLeafWebSystemException(string leafInputIdentifier, string leafInputEmail)
{
var body = $"A system error occured while processing your leaf analysis job, {leafInputIdentifier}." + Environment.NewLine
var body = $"A system error occured while processing your leaf analysis job '{leafInputIdentifier}'." + Environment.NewLine
+ "System administrators have been notified. You will be notified again when the system error "
+ "has been resolved and your data has been processed.";
@@ -205,9 +213,12 @@ namespace LeafWeb.WebCms.Services
{
var member = ApplicationContext.Current.Services.MemberService.GetByEmail(memberEmail);
var verifyEmailURl = _urlService.GetVerifyEmailURl(member);
var body = "Please verify your email address with this link " + verifyEmailURl;
var body =
"Welcome to LeafWeb!" + Environment.NewLine + Environment.NewLine +
"Please verify your email address with this link " + verifyEmailURl + Environment.NewLine +
"Read more information about LeafWeb on the site here: https://leafweb.org/information/about/";
var message = new MailMessage(_emailFromAddress, member.Email, "Verify your email for LeafWeb", body);
var message = new MailMessage(_emailFromAddress, member.Email, "Welcome to LeafWeb, please verify your email address", body);
SendMessage(message);
}