This commit is contained in:
Rick Falkvinge
2017-01-02 12:50:23 +01:00
parent dec629caae
commit 1b0ee5a536
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ namespace Swarmops.Logic.Communications
OutboundComm comm = OutboundComm.Create(null, null, Organization.Sandbox,
null /* resolver */, null,
CommTransmitterClass.CommsTransmitterMail,
new PayloadEnvelope(new ParticipantMailPayload(sandboxMailAddress + "|" + customSubject, customBody, recipients[0].GetMemberships()[0], recipients[0])).ToXml(),
new PayloadEnvelope(new ParticipantMailPayload(customSubject + "|" + sandboxMailAddress, customBody, recipients[0].GetMemberships()[0], recipients[0])).ToXml(),
OutboundCommPriority.Low);
foreach (Person person in recipients)
+3 -2
View File
@@ -75,10 +75,11 @@
("/Pages/v5/Comms/SendMassMessage.aspx/ExecuteSend",
jsonData,
function (result) {
$('#spanRecipientCount').text(result);
if (result.Success) {
alertify.alert(SwarmopsJS.unescape('<%= this.Localized_TestMessageResult %>'));
}
});
alertify.alert(SwarmopsJS.unescape('<%= this.Localized_TestMessageResult %>'));
return false;
}
+1 -1
View File
@@ -108,7 +108,7 @@ namespace Swarmops.Frontend.Pages.Comms
public static AjaxCallResult ExecuteSend(int recipientTypeId, int geographyId, string mode, string subject,
string body, string dummyMail, bool live)
{
OutboundComm.CreateSandboxMail(subject, body, "test@falkvinge.net");
OutboundComm.CreateSandboxMail(subject, body, dummyMail);
return new AjaxCallResult {Success = false};
}
@@ -59,9 +59,8 @@ namespace Swarmops.Utility.Communications
if (person.Identity == 1 && PilotInstallationIds.DevelopmentSandbox == SystemSettings.InstallationId && mail.Subject.Contains("|"))
{
string[] separated = mail.Subject.Split('|');
mail.Subject = separated[1];
BotLog.Write(0, "DEBUG", "'" + separated[0] + "'");
mail.To.Add(new MailAddress("test@falkvinge.net", "Swarmops Sandbox Administrator"));
mail.Subject = separated[0];
mail.To.Add(new MailAddress(separated[1], "Swarmops Sandbox Administrator"));
}
else // regular case to be used... like everywhere else except for the sandbox test
{