Emails get into Hotmail junk box

The problem could be solved by:

  • Adding Message-ID to the header
  • Encoding the subject in base64 form:
    $subject = ‘=?utf-8?B?’ . base64_encode(‘EMAIL SUBJECT’) . ‘?=’;
  • Using php mail() function instead of PHPMailer