I fetch a MailMessage from IEWSClient, and this email is signed.
When I access the .Attachments property, I only see the “smime.7s” attachment and not the “real” attachments.
How could I retrieve these attachments ?
@Fabske,
Unfortunately, I have not found a way to do that. I logged the issue with ID EMAILNET-40477 in our tracking system. Our development team will consider such a capability. We will inform you of any progress.
@Fabske,
Our development team has investigated the issue. Please try to use the next way:
MailMessage signedMsg = client.FetchMessage(messageInfo.UniqueUri);
if (signedMsg.IsSigned)
{
MailMessage unsignedMsg = signedMsg.RemoveSignature();
foreach (Attachment att in unsignedMsg.Attachments)
{
string name = att.Name;
//your code to work with attachment
}
}
If the issue persists, please share the code example you are using and the message file.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.