The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › WordPress -send html email from admin custom menu page
I am creating simple newsletter plugin, that can send html email from wordpress admin zone.
I created custom menu page in admin, where is simple form and submit button.
After click on submit button I am calling through ajax php file, in which is located function wp_mail.
It does not work.
Is there any way how to include wordpress core files into that php file, so it can use wp_mail function?
Or is this completely wrong idea?
Thank you for help.