The standalone script will not load WordPress, so it doesn’t have a wp_mail()
function. WordPress has its own built-in Ajax handlers which you can leverage and have access to all WordPress functionality within those Ajax calls.
The standalone script will not load WordPress, so it doesn’t have a wp_mail()
function. WordPress has its own built-in Ajax handlers which you can leverage and have access to all WordPress functionality within those Ajax calls.