PHP's Mail () function disabled in SMTP?

0

I'm experiencing problems with PHPMailer, the class version is 5.1 , which is generating the following error: Could not instantiate mail function error that corresponds to an instance problem.

Checking the possible causes of this, I have found that Policy: disable_functions is including the function mail() .

So when I use it I get the following error:

  

Warning: mail () has been disabled for security reasons

In front of all this, I would like to know if the error generated, Could not instantiate mail function , is directly related to the lack of this function in php.ini .

obs: The MX server is configured for G Suite , so SMTP settings are from google gmail.

    
asked by anonymous 11.01.2017 / 21:42

1 answer

0

I removed this and resolved: $mail->Mailer = "SMTP";

    
11.01.2017 / 22:26