How to use the WordPress wp_mail(); function on an external PHP using Advanced Email Options settings e.g. WP-Mail-SMTP Plugin How to use the WordPress wp_mail(); function on an external PHP using Advanced Email Options settings e.g. WP-Mail-SMTP Plugin wordpress wordpress

How to use the WordPress wp_mail(); function on an external PHP using Advanced Email Options settings e.g. WP-Mail-SMTP Plugin


include '../../../wp-load.php';

include this file in your custom php file on the top. then after you can access all wordpress functions inside that file. including wp_mail() function.