Archived Forum Post

Index of archived forum posts


unable to find getmimeobject method in the email object

Jan 29 '16 at 09:35

Hi, i am trying to parse the email to track the delivery notification for that i am trying to use the sample example which is given in the below link when i am trying to use that its shwoing below message in visual studio.

'Email' does not contain a definition for 'GetMimeObject' and no extension method 'GetMimeObject' accepting a first argument of type 'Email' could be found (are you missing a using directive or an assembly reference?)


GetMimeObject was removed when v9.5.0.0 was released (which was a major release with intentional backward incompatibilities). This was in the release notes:

Email Object: Removed the SetFromMimeObject and GetMimeObject methods.

This is to eliminate the linkage between the Mime and Email objects which can result in much larger executables for apps linking with C/C++ libs (such as iOS). Existing apps that used these methods should instead accomplish the same in 2 steps: (1) Get the MIME as a string, (2) Load the object from the MIME string. This is effectively what was happening in the removed methods, so there is no performance loss — it’s simply a matter of replacing 1 line of code with 2 lines of code..