Hi, I've just installed the wp_mail_smtp plugin. The settings are ok and I'm able to send out a test e-mail successfully.
When configuring my php file to use wp_mail() it gives an error:
Fatal error: Call to undefined function wp_mail() in /home/path to .php
the line of code is:
wp_mail($address,"Subject here",$txt,"From: firstname.lastname@example.org");
As my php is called outside of wordpress do I need to include any wordpress code?
Previously was working with mail() but would like to change to use smtp
Any help much appreciated
Thanks in advance