title: how to make php Outlook.Application work and send mail?
body: <pre><code>if (!defined(‘olMailItem’)) define(“olMailItem”,0);
  $objApp = new COM(“Outlook.Application”);
  $myItem = $objApp-&gt;CreateItem(olMailItem);
  $myItem-&gt;To=’xxxx@xxx.com’;
  $myItem-&gt;SentOnBehalfOfName = ‘yyy@xxyyx.com’;
  $myItem-&gt;Subject=”This is a test”;
  $myItem-&gt;Body=”This is a Body Section now…..!”;
  $myItem-&gt;Send();
  </code></pre>
  
  <p>i get this error</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception ‘com_exception’ with message ‘ in D:\NotEncrypted\xampp\htdocs\copper\system\modules\projects\index.php on line 11251 ( ! ) com_exception: Error [0x80004004] Operation aborted in D:\NotEncrypted\xampp\htdocs\copper\system\modules\projects\index.php on line 11251</p>
  </blockquote>
  
  <p>Thanks for the comments and help guys.. </p>