PHP Mailer sends emails to spam and not to the inbox

1

Good morning, I am sending emails through phpmailer but come to unwanted especially in destinations @ hotmail.com any idea that can be?

<?php
    require '../phpmailer/PHPMailerAutoload.php';
    $mail=new PHPmailer;

            $mail->isSMTP();
            $mail->Host='gator4025.hostgator.com';          
            $mail->Port=465;
            $mail->SMTPAuth=true;
            $mail->SMTPSecure='ssl';

            $mail->Username='[email protected]';
            $mail->Password='mypass';

            $mail->setFrom('[email protected]','Solicitudes Tecflucol');
            $mail->Sender='[email protected]';
            $mail->addReplyTo('[email protected]','Solicitudes Tecflucol');
            $mail->addAddress([email protected]);
            $mail->isHTML(false);
            $mail->Subject='Confirmacion solicitud de instalacion de agua numero: '.$nuevo_id;
            $mail->Body='Has realizado una solicitud de instalacion de agua para su hogar, con numero : '.$nuevo_id."\r\n"."\r\n".
            'Le estaremos contactando al numero proporcionado: '.$celular."\r\n".
            'Gracias por usar nuestros servicios'."\r\n".
            'Cordialmente:'."\r\n".
            'Tecflucol';

            if(!$mail->Send()) {
        echo "Mensaje no enviado <br />PHPMailer Error: " . $email->ErrorInfo;
            }
            else {
        echo "Mensaje enviado";
            }
?>
    
asked by Gabriel Uribe Gomez 06.08.2018 в 04:19
source

0 answers