diff options
author | Urban Müller | 2022-03-11 14:57:35 +0100 |
---|---|---|
committer | Urban Müller | 2022-03-11 14:57:35 +0100 |
commit | 1bded8a016bb64221fff4003e28947f50e9e00d9 (patch) | |
tree | 405ae2a1c7140e228513fd71b67fe5d816fa5962 /it.class | |
parent | d97a23f7af099998470b00f5f76363cb2b1bcab9 (diff) | |
download | itools-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.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |