WordPress at a glance
function is not described


PHPMailer::send() public WP 1.0

Create a message and send it. Uses the sending method specified by $Mailer.

{} It's a method of the class: PHPMailer{}

No Hooks.


true|false. false on error - See the ErrorInfo property for details of the error


$PHPMailer = new PHPMailer();

Code of PHPMailer::send() WP 5.7.2

public function send()
    try {
        if (!$this->preSend()) {
            return false;

        return $this->postSend();
    } catch (Exception $exc) {
        $this->mailHeader = '';
        if ($this->exceptions) {
            throw $exc;

        return false;