diff options
Diffstat (limited to 'it.class')
| -rw-r--r-- | it.class | 14 | 
1 files changed, 8 insertions, 6 deletions
| @@ -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);  }  /** |