do_action_ref_array( 'phpmailer_init', PHPMailer $phpmailer )
Fires after PHPMailer is initialized.
Description Description
Parameters Parameters
- $phpmailer
-
(PHPMailer) The PHPMailer instance (passed by reference).
Source Source
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
If you call
$phpmailer->setFrom()
, it’s often important to explicitly set the third parameter tofalse
, to tell PHPMailer to not override theSender
header. The parameter defaults totrue
, and using that can cause messages to be rejected.See #37736 for details.