wp_mail fails with “Could not instantiate mail function” but “mail()” works fine
So I managed to trace down the issue with the following method: I created a php file with the following: <?php ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL); // include wordpress require_once(‘wp-load.php’); $to = “[email protected]”; $msg = “test email via wordpress”; $headers = array( ‘From: The Domain<[email protected]>’ ); $headers = implode( PHP_EOL, $headers ); // use wordpress … Read more