PHPMailer::mailPassthru
Call mail() in a safe_mode-aware fashion.
Also, unless sendmail_path points to sendmail (or something that claims to be sendmail), don't pass params (not a perfect fix, but it will do)
Signature
private function mailPassthru(string
$to,
string
$subject,
string
$body,
string
$header,
string
$params )
Parameters
$to
— string
To$subject
— string
Subject$body
— string
Message Body$header
— string
Additional Header(s)$params
— string
Params
Returns
- boolean
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
751 | ShortVariable | Avoid variables with short names like $to. Configured minimum length is 3. |