Soulshine K

Soulshine K

  • NA
  • 2
  • 8.2k

Error when sending email using Outlook API

Apr 3 2012 1:29 AM

Am trying to send email using MS Outlook API through from my .Net 4 C# application on a Windows 7 machine. Am able to send it successfully if I dont set any sender's email Id in the code.

But when I invoke SendUsingAccount(), I get an access violation error:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Could you please advise?

Thanks.