title: With Outlook 2016 : MAPISendMail fails in an windows application and returning "MAPI_E_FAILURE" as error code
body: <p>I am trying to send an email using a c++application where I loaded MAPI32.dll first and then tried accessing the MAPISendMail with the necessary parameters being passed. When I tried to execute this step it throwing an exception "Access violation..". When I click continue then it throws "MAPI_E_FAILURE" as the error  code. But the same piece of code works fine for windows 7 and outlook 2013 environment.</p>
  
  <p>The environment I am using is windows 10 and outlook 2016 and issue exists in this OS with outlook 2016.</p>
  
  <p>I have taken this link as reference:<a href="https://www.experts-exchange.com/articles/1820/Sending-Email-with-MAPI.html" rel="nofollow noreferrer">MAPISendMail_Expert</a></p>
  
  <p>I could not trace out what exactly is the issue. It would be greatly appreciable if any one could help me.</p>