summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class14
1 files changed, 8 insertions, 6 deletions
diff --git a/it.class b/it.class
index 1f39013..d28423d 100644
--- a/it.class
+++ b/it.class
@@ -772,17 +772,19 @@ static function map($expression, $array)
}
/**
- * Send a mail. Expects array for Header => Content pairs with Body => for the mail body.
+ * Send a mail.
+ * @param $p Header => Content pairs with Body => for the mail body
+ * @param $p['forcemail'] Send this mail even if we're on a twin or devel machine
* @return nothing useful
*/
static function mail($p)
{
- $body = $p['Body'];
- unset($p['Body']);
- $mail = new it_mail($p);
- $mail->add_body($body);
+ $headers = $p;
+ unset($headers['forcemail'], $headers['Body']);
+ $mail = new it_mail($headers);
+ $mail->add_body($p['Body']);
- return $mail->send();
+ return $mail->send($p);
}
/**