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,
Vikas
ow to send password protected attachment/pdf with sending email
mission_impo...
Member
2 Points
9 Posts
How to send password protected attachment/pdf with sending email
May 11, 2010 05:54 AM|LINK
Hello friends,
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,
Vikas
ow to send password protected attachment/pdf with sending email
Mikesdotnett...
All-Star
154915 Points
19866 Posts
Moderator
MVP
Re: How to send password protected attachment/pdf with sending email
May 11, 2010 06:57 AM|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.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
SATISD9X
Contributor
2713 Points
487 Posts
Re: How to send password protected attachment/pdf with sending email
May 11, 2010 07:03 AM|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.
MCTS .Net Framework 2.0 Web Applications
Web Developer 3.5
~ Please Mark as Answer if it solves your query ~
Pebble94464
Member
188 Points
34 Posts
Re: How to send password protected attachment/pdf with sending email
May 12, 2010 01:40 AM|LINK
You'll need to password and encrypt to protect a PDF file. The following examples show how this can be achieved using ABCpdf...
C#
Doc theDoc = new Doc(); theDoc.FontSize = 96; theDoc.AddText("Hello World!"); theDoc.Encryption.Type = 2; theDoc.Encryption.Password = "mypassword"; theDoc.Save("docencrypt.pdf"); theDoc.Clear();VB
Dim theDoc As Doc = New Doc() theDoc.FontSize = 96 theDoc.AddText("Hello World!") theDoc.Encryption.Type = 2 theDoc.Encryption.Password = "mypassword" theDoc.Save("protected.pdf") theDoc.Clear()Theses examples use 128-bit encryption. Further information on Doc.Encryption, including how to set user permissions, can be found here...
password pdf encryption