I have done the function below, which does not return any error, but does not arrive in some destination emails (Yahoo for example)
function enviaEmail($titulo = '', $conteudo = '', $email = '', $nome = '') {
$to = $email;
$subject = $titulo;
$content = Reconstroi($conteudo, $nome);
$headers = array('Content-Type: text/html; charset=UTF-8');
$headers[] = 'From: meu site@ <[email protected]>';
$status = wp_mail($to, $subject, $content, $headers);
if($status==TRUE){return 1;}else{return 0; echo"deu erro no envio do email "
.$status;}//return var_dump($status);
}
How to get email to the right destinations?