diff --git a/entity/BulkMail_entity/entityfields/sender/onValidation.js b/entity/BulkMail_entity/entityfields/sender/onValidation.js
index 429ec70614bd74bcba194b44a61640f3b7a2e779..36c5491ee5aa2ddf06932ee751e0f7740ad24547 100644
--- a/entity/BulkMail_entity/entityfields/sender/onValidation.js
+++ b/entity/BulkMail_entity/entityfields/sender/onValidation.js
@@ -1,3 +1,4 @@
+import("system.vars");
 import("system.result");
 import("Communication_lib");
 import("Entity_lib");
diff --git a/process/Email_lib/process.js b/process/Email_lib/process.js
index b26904cb878d957b93dc6b9d30842edee8a7754b..bdaf02a758707629a40926757f069a3338674fe9 100644
--- a/process/Email_lib/process.js
+++ b/process/Email_lib/process.js
@@ -248,11 +248,7 @@ Email.prototype.send = function (pUser)
         else
             mail.addText(mailId, "", "text/html", ENCODING, null);
     
-        if (pUser)
-            mail.sendMailAs(pUser, mailId);
-        else
-            mail.sendMail(mailId);
-        return true;
+        return mail.sendMailAs(pUser || "mailbridge", mailId) > 0;
     }
     catch (ex)
     {