title: Outlook not receiving e-mails from php script
body: <p>Okay, I'm at my whit's end here. I have a client whose site is hosted on GoDaddy and that uses Outlook. I've written a PHP script to send mail to one of their domain e-mail addresses from a contact form on their website. </p>
  
  <p>I can get this e-mail to send to every single service except outlook/exchange/live/microsoft accounts. </p>
  
  <p>I read that using PHPMailer was a good idea, so this is what I'm currently using to send mail:</p>
  
  <pre><code>//$mail-&gt;IsSMTP(); // telling the class to use SMTP
  $mail-&gt;SMTPDebug  = 2;                      
  $mail-&gt;SMTPAuth   = true;                   
  $mail-&gt;SMTPSecure = "ssl";                  
  $mail-&gt;Host       = "a2plcpnl0287.prod.iad2.secureserver.net";       
  $mail-&gt;Port       = 465;                    
  $mail-&gt;Username   = "test@alamohomefinance.com";    
  $mail-&gt;Password   = "xxxxxxx";          
  $mail-&gt;SetFrom('yourname@yourdomain.com', 'First Last');
  $mail-&gt;AddReplyTo("name@yourdomain.com","First Last");
  $mail-&gt;Subject    = "PHPMailer Test Subject via smtp (hotmail), basic";
  $mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; 
  $mail-&gt;MsgHTML($body);
  
  $address = "jakerevans2@live.com"; 
  
  if(!$mail-&gt;Send()) {
      error_log("Error from calculator!". $mail-&gt;ErrorInfo); 
  } else {
   error_log("Success from calculator!");
  }
  </code></pre>
  
  <p>This e-mail gets sent to my gmail account and some others, but not to my .live account or my client's Outlook address.</p>
  
  <p>I've tried everything I've found on the internet so far, nothing is working. Any ideas or thoughts anyone?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
  The Godaddy server has an SPF record that reads:    v=spf1 include:spf.protection.outlook.com -all</p>
  
  <p>I've created a DKIM key from <a href="https://www.port25.com/dkim-wizard/" rel="nofollow">https://www.port25.com/dkim-wizard/</a> and added a DKIM TXT record to GoDaddy, with the following details:</p>
  
  <p>Host: key1._domainkey.alamohomefinance.com
  TXT Value: k=rsa\; p=MIIBIjA...</p>
  
  <p>I've added a DKIM record, with the following details:
  Name: _dmarc.alamohomefinance.com
  TXT Value: v=DMARC1; p=quarantine; sp=none; ruf=mailto:user@example.com; rf=afrf; pct=100; ri=86400</p>
  
  <p>Am testing now to see if these changes make a difference...</p>