Hi, I already configured my smtp to send emails, I tried to send the test email and it said that everything was ok, but when I want to send a email like this
$to = 'steven@toolsnet.mx';
$subject = $_POST['subject'];
$messaje = "Telefono: $_POST[phone]\r\n$_POST[mail]";
$headers = "From: $_POST[name] <$_POST[email]>" . "\r\n";
echo json_encode(array('success' => true, 'result' => wp_mail($to, $subject, $message, $headers)));
it doen's work, the function only retur me "False", may somebody help me??