Error when sending email using Outlook API

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style="padding-right:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
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 senders email Id in the code.
<p style="padding-right:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
But when I invoke SendUsingAccount(), I get an access violation error:
<blockquote style="margin-bottom:10px; padding-bottom:1px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-size:14px; vertical-align:baseline; background-color:#ffffff; quotes:none; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<p style="padding-right:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
</blockquote>
<p style="padding-right:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
Could you please advise?

View the full article
 
Back
Top