title: Magento only sends order confirmation emails when manually prompted to
body: <p>A Magento website I'm maintaining stopped sending order confirmations and/or invoices all of a sudden. </p>
  
  <p>Nothing has been changed in the email settings and they're all complying with common Magento guidelines. I've tried sending a test email through the following php script to make sure it's not caused by any server settings:</p>
  
  <pre><code>    &lt;?php
  $to = "me@domain.com";
  $subject = "Test email";
  $message = "This is a test email.";
  $from = "testing@anothertest.test";
  $headers = "From:" . $from;
  if (mail($to, $subject, $message, $headers)) {
      echo("Your message has been sent successfully");
      } else {
      echo("Sorry, your message could not be sent");
  }
  ?&gt;
  </code></pre>
  
  <p>The test message got delivered flawlessly. </p>
  
  <p>I installed the <a href="http://www.magentocommerce.com/magento-connect/smtp-pro-email-free-custom-smtp-email.html" rel="nofollow">SMTP Pro Email plugin</a> to see if changing settings there would manage a result; nothing. The plugin offers the ability to send a test email, which again gets delivered without flaw.</p>
  
  <p>Even stranger, clicking the 'Send Email' button in the Magento backend for an order <em>does</em> deliver the email. Signing up for a newsletter <em>does</em> result in a subscription confirmation request email. Clearly, the website <strong>can</strong> send mails, it just somehow doesn't get triggered to do so for order order confirmations and invoices.</p>
  
  <p>And yes, both </p>
  
  <p><strong>System > Configuration > Sales > Sales Emails > Order > Enabled</strong> </p>
  
  <p>and </p>
  
  <p><strong>System > Configuration > Sales > Sales Emails > Invoice > Enabled</strong> </p>
  
  <p>are set to <strong>Yes</strong> and include a BCC address.</p>
  
  <p>Similarly, </p>
  
  <p><strong>System > Configuration > Advanced > System > Mail Sending Settings > Disable Email Communications</strong></p>
  
  <p>is set to <strong>No</strong>.</p>
  
  <p>I'm running Magento CE 1.6.2 on this site, so it's not the common cron job problem version 1.9 seems to cause for a lot of folk.</p>
  
  <p>I'm racking my brain here, does anybody have a clue?</p>