Added orgname to subject for mass mail
This commit is contained in:
@@ -95,7 +95,7 @@ namespace Swarmops.Logic.Communications.Payload
|
||||
|
||||
RenderedComm result = new RenderedComm();
|
||||
result[CommRenderPart.BodyText] = body;
|
||||
result[CommRenderPart.Subject] = subject;
|
||||
result[CommRenderPart.Subject] = "[" + Strings[MailPayloadString.OrganizationName] + "] " + subject;
|
||||
result[CommRenderPart.SenderMail] = "admin@swarmops.com"; // TODO: FIX FIX FIX HACK
|
||||
result[CommRenderPart.SenderName] = "Swarmops Administrative";
|
||||
|
||||
|
||||
@@ -35,12 +35,20 @@
|
||||
|
||||
function onClickTest() {
|
||||
|
||||
var body = $('#<%=this.TextMessage.ClientID%>').val().trim();
|
||||
|
||||
if (body.length < 2) // interpreted as empty
|
||||
{
|
||||
alertify.alert("You should write a message body before sending your message."); // TODO: LOC
|
||||
return false;
|
||||
}
|
||||
|
||||
if (<%=this.RunningOnSandbox%> && testMessageSandboxAddress == '')
|
||||
{
|
||||
// Prompt for an address to send to
|
||||
// This should preferably be in a mod on just Sandbox and not in code everywhere
|
||||
|
||||
alertify.prompt("You're currently using the Sandbox. Where would you like a test message sent?",
|
||||
alertify.prompt("You're currently using the Sandbox. Where would you like a test message sent?", // TODO: LOC
|
||||
function (evt, value)
|
||||
{
|
||||
testMessageSandboxAddress = value; // may need sanitation
|
||||
|
||||
Reference in New Issue
Block a user