Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Call mail() in a safe_mode-aware fashion.

Syntax Syntax

PHPMailer::mailPassthru( string $to, string $subject, string $body, string $header, string $params )

Description Description

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)

Parameters Parameters


(Required) To


(Required) Subject


(Required) Message Body


(Required) Additional Header(s)


(Required) Params

Return Return


Source Source

File: wp-includes/class-phpmailer.php




Leave a Reply