Skip to content
Snippets Groups Projects
Commit ac4144b6 authored by v.broens's avatar v.broens
Browse files

bulkmail_continuemailing_action_fix

parent 2793f127
No related branches found
No related tags found
No related merge requests found
import("system.translate");
import("system.question");
import("Sql_lib");
import("system.neon");
import("system.vars");
import("Bulkmail_lib");
import("system.db");
import("KeywordRegistry_basic");
var send = question.askYesNo(translate.text("Bulk mail"), translate.text("Should the mail be sent now?"), false);
if (send)
{
//UPDATE BULKMAIL STATUS
newWhere("BULKMAIL.BULKMAILID", "$field.BULKMAILID")
.updateFields({"STATUS" : $KeywordRegistry.bulkMailStatus$beingSent()});
neon.refreshAll();
BulkMailUtils.sendBulkMailOnServer(vars.get("$field.BULKMAILID"));
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment