Hello I am new here in the forum and I'm a class PHP MAILER VERSION 5.2.1 and test the code below into my hosting server does not appear in the Hotmail junk
<?phprequire('phpmailer/class.phpmailer.php');$mail=newPHPMailer();$mail->IsSMTP();$mail->SMTPAuth=true;$mail->Port=587;//PORTA SMTP PADRÃO DE ENVIO PARA TODAS AS HOSPEDAGENS$mail->Host='mail.meudominio.com.br';$mail->Username='meuemail@meudominio.com.br';$mail->Password='pass';$mail->SetFrom('meuemail@meudominio.com.br','meunome');//Email e Nome do Email do Remetente $mail->AddAddress('divulguesites@hotmail.com','Luiz Antonio');//Email e Nome do Email do Destinatário$mail->AddAddress('contato@meudominio.com.br','Luiz Antonio');//Email e Nome do Email do Destinatário$mail->AddAddress('meuemail@gmail.com','Luiz Antonio');//Email e Nome do Email do Destinatário$mail->Subject='Testando o Envio Autenticado de Email - Via PhpMailer 5';//LINHA DE ASSUNTO DO EMAIL$mail->MsgHTML('<h1>Enviando Teste de Email HTML Autênticado</h1>');//Corpo da Msg de Email//Testando Envio de Emailif($mail->Send())echo'E-mail enviado com sucesso!!!';elseecho'Erro ao enviar o email '.$mail->ErrorInfo;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/><title>Untitled Document</title></head><body></body></html>
He usually sends the test email authenticated - for my email and outlook express for gmail tb - now for the Hotmail email, nor appear on electronics waste - someone would have an answer for what pd be occurring
I'm waiting and I thank - LUIZ
Last edit: Marcus Bointon 2013-12-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your code looks fine. You should look at your sending environment: check you are not blacklisted, that your SPF record is ok. Do not send from dynamically allocated addresses - most are blacklisted automatically. Aside from that, PHPMailer can do nothing about other people's spam filters.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello I am new here in the forum and I'm a class PHP MAILER VERSION 5.2.1 and test the code below into my hosting server does not appear in the Hotmail junk
He usually sends the test email authenticated - for my email and outlook express for gmail tb - now for the Hotmail email, nor appear on electronics waste - someone would have an answer for what pd be occurring
I'm waiting and I thank - LUIZ
Last edit: Marcus Bointon 2013-12-27
You are using an old version. Please get a later version from github: https://github.com/PHPMailer/PHPMailer
Your code looks fine. You should look at your sending environment: check you are not blacklisted, that your SPF record is ok. Do not send from dynamically allocated addresses - most are blacklisted automatically. Aside from that, PHPMailer can do nothing about other people's spam filters.