summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2022-03-11 14:57:35 +0100
committerUrban Müller2022-03-11 14:57:35 +0100
commit1bded8a016bb64221fff4003e28947f50e9e00d9 (patch)
tree405ae2a1c7140e228513fd71b67fe5d816fa5962 /it.class
parentd97a23f7af099998470b00f5f76363cb2b1bcab9 (diff)
downloaditools-1bded8a016bb64221fff4003e28947f50e9e00d9.tar.gz
itools-1bded8a016bb64221fff4003e28947f50e9e00d9.tar.bz2
itools-1bded8a016bb64221fff4003e28947f50e9e00d9.zip
format check for email addresses on sending
Diffstat (limited to 'it.class')
-rw-r--r--it.class3
1 files changed, 2 insertions, 1 deletions
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);