From 1bded8a016bb64221fff4003e28947f50e9e00d9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 11 Mar 2022 14:57:35 +0100 Subject: format check for email addresses on sending --- it.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index dfefb8d..5dbcdcd 100644 --- a/it.class +++ b/it.class @@ -1093,12 +1093,13 @@ static function filter($code, $array) * Send a mail. * @param $p Header => Content (e.g To => me@example.com, Body => bodytext, Html => htmlbodytext) * @param $p['forcemail'] Send this mail even if we're on a twin or devel machine + * @param $p['it_error'] Error handling params for bad email addresses * @return false on some errors but most cannot be caught */ static function mail($p) { $headers = $p; - unset($headers['forcemail'], $headers['Body'], $headers['Html']); + unset($headers['forcemail'], $headers['it_error'], $headers['Body'], $headers['Html']); $mail = new it_mail(array_filter($headers)); $mail->add_body($p['Body']); $mail->add_body($p['Html'], IT_MAIL_HTML); -- cgit v1.2.3