I have a WordPress website installed on my localhost machine and I'm unable to send emails using the function wp_mail. I don't get any error but I can't receive my emails either? Can someone point me on the right direction? Here's an example of my code:
include("wp-mail.php");
$to = 'test@gmail.com';
$subject = 'Hello';
$message = 'Steve';
wp_mail( $to, $subject, $message );
Thanks