I suggest the following changes to improve support for attachments.
adding a property to the Attachment class that retrieves the value of the ContentID attribute if it exists, or returns the NULL value. This makes it possible to differentiate a normal attachment, an attachment included in the mail body, such as an image.
deleting the Attachment and Attachment class extensions because the Source and Json properties are unnecessary.
I suggest the following changes to improve support for attachments.
adding a property to the Attachment class that retrieves the value of the ContentID attribute if it exists, or returns the NULL value. This makes it possible to differentiate a normal attachment, an attachment included in the mail body, such as an image.
deleting the Attachment and Attachment class extensions because the Source and Json properties are unnecessary.