Last post May 12, 2010 01:40 AM by Pebble94464
May 11, 2010 05:54 AM|mission_impossible1088|LINK
I have completed sending attachment/pdf with email.
I have to send password protected attachment/pdf while sending email so that reciepeint should be asked to enter password while opening attachment/pdf and he will open attachment/pdf only after entering password.
Please help me.
Thanks ans Regards,
ow to send password protected attachment/pdf with sending email
May 11, 2010 06:57 AM|Mikesdotnetting|LINK
You need to apply the security to the PDF file itself. You can do that with Acrobat, or with a third party component like iTextSharp.
May 11, 2010 07:03 AM|SATISD9X|LINK
Apply password protection to the PDF and then send that PDF inside the email. You may have to use a third party tool to achieve this.
May 12, 2010 01:40 AM|Pebble94464|LINK
You'll need to password and encrypt to protect a PDF file. The following examples show how this can be achieved using ABCpdf...
Doc theDoc = new Doc();
theDoc.FontSize = 96;
theDoc.Encryption.Type = 2;
theDoc.Encryption.Password = "mypassword";
Dim theDoc As Doc = New Doc()
theDoc.FontSize = 96
theDoc.Encryption.Type = 2
theDoc.Encryption.Password = "mypassword"
Theses examples use 128-bit encryption. Further information on Doc.Encryption, including how to set user permissions, can be found