0
I did the function below, which does not return any error, but also 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 the email to the right destinations?
Some providers mark as spam. Use
wp_mail
withSMTP
– Valdeir Psr
i am using the plugin SMTP Mailer .... even so, will not go...
– Horacio Neto