Test
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user