+1 vote

Hello, I'm new with mail.dll :) I looked the technical forum without finding the answer of my problem :

I would like to send email with an attachment (no problem) but I need to add a content-description to this attachment (example: HPS/2.1) and I don't find how to add this information. Can you help me ?

Regarding the attachment I must have something like that:

Content-Type: application/x-hprimnet; name="test.hps"
Content-Description: HPS/2.1;

Thank you

edited by

1 Answer

0 votes
Best answer

This should quite simple, use MimeData.Headers collection after adding attachment to an email:

MailBuilder builder = ...
MimeData att = builder.AddAttachment("c:\\report.pdf");
att.Headers["Content-Description"] = "Description goes here";  
by (298k points)