Hotmail account cannot receive email sent by Godaddy

I tried to make an email service on my website, but after I tried the code below, I found that my Hotmail account cannot receive a test email and others are ok (Gmail and Yahoo). I use Godaddy hosting. Please, help.

My code is:

<?php require 'PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->setFrom(' example@example.com ', 'example'); $mail->addAddress(' myemailid@hotmail.com ', 'myname'); $mail->Subject = 'PHPMailer mail() test'; $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__)); $mail->AltBody = 'This is a plain-text message body'; if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!"; } ?> 
+5
source share
1 answer

I had the same problem in the past and the solution was to apply for ip whitelisting. Here are the steps for this.

  • Step 1

Go to the Hotmail Postmaster website

  • Step 2

Click the link " The email I send is blocked or deleted by Hotmail ." You are redirected to the Hotmail Live Problem Finder page .

  • Step 3

Review the troubleshooting guide to diagnose the problem. Email from your IP address can be automatically identified as spam for several reasons. Dynamic IP addresses may be used by other parties for spam, or the DNS record for your domain may not appear legitimate for Hotmail servers. Identify and fix issues where your email for Hotmail users will be blocked as unwanted.

  • Step 4

Complete the application in the Junk Email Program . This will help Hotmail identify your mail domain and add it to the white list.

+4
source

Source: https://habr.com/ru/post/1233671/


All Articles