src/LIN3S/WPFoundation/Configuration/Mailer/Mailer.php
public function mailer($phpMailer)
    {
        if (MAILER_SMTP) {
            $phpMailer->isSMTP();
            $phpMailer->SMTPAuth = true;
        }
        $phpMailer->Host = MAILER_HOST;
        $phpMailer->Port = MAILER_PORT;
        $phpMailer->Username = MAILER_USERNAME;
        $phpMailer->Password = MAILER_PASSWORD;
        $phpMailer->SMTPSecure = MAILER_TRANSPORT;
        $phpMailer->Sender = $phpMailer->From;
    }
public function mailer($phpMailer)
    {
        if (MAILER_SMTP) {
            $phpMailer->isSMTP();
            $phpMailer->SMTPAuth = true;
        }
        $phpMailer->Host = MAILER_HOST;
        $phpMailer->Port = MAILER_PORT;
        $phpMailer->Username = MAILER_USERNAME;
        $phpMailer->Password = MAILER_PASSWORD;
        $phpMailer->SMTPSecure = MAILER_TRANSPORT;
        $phpMailer->Sender = $phpMailer->From;
    }
public function mailer ( $ phpMailer ) { if ( MAILER_SMTP ) { $ phpMailer -> isSMTP ( ) ; $ phpMailer -> SMTPAuth = true ; } $ phpMailer -> Host = MAILER_HOST ; $ phpMailer -> Port = MAILER_PORT ; $ phpMailer -> Username = MAILER_USERNAME ; $ phpMailer -> Password = MAILER_PASSWORD ; $ phpMailer -> SMTPSecure = MAILER_TRANSPORT ; $ phpMailer -> Sender = $ phpMailer -> From ; }
Configures the mailer according to the parameters in "wp-config-custom.php".

@param object $phpMailer The PhpMailer instance
Configures the mailer according to the parameters in wp - config - custom . php .