473,418 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Signing and encrypting emails with attachment

Hi All,

I would like to send emails through an application. Body and attachment have
to be encrypted as well as digitally signed.

I could able to sign it and send when it does not contain an attachment.
Once I attached something someone can see the attachment even without proper
certificate installed. Also body of the email gets disappeared in the same
time.

I am using .NET 2.0 and C#. Namespaces I am using are

using System.Net.Mail;

using System.Security.Cryptography.X509Certificates;

using System.Security.Cryptography.Pkcs;

Could some one help me with this please?

Thanks

Matt
Jun 27 '08 #1
2 2698
Hi,

Mail encryption is not supported in System.Net.Mail.
You can use encryption at transportation level using the EnableSsl property
on SmtpClient.
ref:
http://msdn.microsoft.com/en-us/libr...enablessl.aspx

If .NET 3.0 is possible for you, you may consider to use WCF and a message
security method (or extend the programming model to implement what you want
to do)
ref: http://msdn.microsoft.com/en-us/library/bb397811.aspx

If .NET 2.0 is the only one you can use, you may consider to implement your
own security mecanism (embed your mail as an encrypted attachment, ...).

Frédéric Queudret
CTO MPOWARE
http://www.mpoware.com/
"Mathew Coleman" <mt*******@gmail.comwrote in message
news:uT**************@TK2MSFTNGP03.phx.gbl...
Hi All,

I would like to send emails through an application. Body and attachment
have to be encrypted as well as digitally signed.

I could able to sign it and send when it does not contain an attachment.
Once I attached something someone can see the attachment even without
proper certificate installed. Also body of the email gets disappeared in
the same time.

I am using .NET 2.0 and C#. Namespaces I am using are

using System.Net.Mail;

using System.Security.Cryptography.X509Certificates;

using System.Security.Cryptography.Pkcs;

Could some one help me with this please?

Thanks

Matt

Jun 27 '08 #2
Hi Frédéric,

Thanks a lot for your prompt reply.

..NET 3.0 is not possible for this scenario. As you have suggested I tried
the 3rd option earlier. There was a problem with that. In my case I want
sign the mail as well. Once I attached something the body and the signed
part is being disappeared. As you suggested I can encrypt the email as
encrypted attachment, but I cannot avoid disappearing of the body soon after
I add the attachment. I appreciate your help on this.

Thanks and regards

Matt


"Frédéric Queudret" <fr***************@mpoware.comwrote in message
news:83**********************************@microsof t.com...
Hi,

Mail encryption is not supported in System.Net.Mail.
You can use encryption at transportation level using the EnableSsl
property on SmtpClient.
ref:
http://msdn.microsoft.com/en-us/libr...enablessl.aspx

If .NET 3.0 is possible for you, you may consider to use WCF and a message
security method (or extend the programming model to implement what you
want to do)
ref: http://msdn.microsoft.com/en-us/library/bb397811.aspx

If .NET 2.0 is the only one you can use, you may consider to implement
your own security mecanism (embed your mail as an encrypted attachment,
...).

Frédéric Queudret
CTO MPOWARE
http://www.mpoware.com/
"Mathew Coleman" <mt*******@gmail.comwrote in message
news:uT**************@TK2MSFTNGP03.phx.gbl...
>Hi All,

I would like to send emails through an application. Body and attachment
have to be encrypted as well as digitally signed.

I could able to sign it and send when it does not contain an attachment.
Once I attached something someone can see the attachment even without
proper certificate installed. Also body of the email gets disappeared in
the same time.

I am using .NET 2.0 and C#. Namespaces I am using are

using System.Net.Mail;

using System.Security.Cryptography.X509Certificates;

using System.Security.Cryptography.Pkcs;

Could some one help me with this please?

Thanks

Matt


Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Li Weng | last post by:
Hi, Within WebDAV I can use "X-MS-ENUMATTS" and "attachmentfilename" to get attachment file names. But if the attachment is another email, it doesn't come with "attachmentfilename". My...
2
by: Derrick | last post by:
Hi All, I wrote an app that reads text and/or xml data, will call it our "content". We want to secure that content so that our app will know if someone has modified it, or has produced their own...
1
by: JohnRHarlow | last post by:
Hi: I am looking for advice on the best way to set up a process to read incoming emails (from a normal unix mailbox on the same host) containing a gzipped telemetry attachment. I'd like the...
4
by: krishnakant Mane | last post by:
hello, I am a bit confused. I want to make a program that will take some data from a database and make a string of text. and send it to the respective email id of a person. next I also want to...
16
by: Kosmos | last post by:
Good afternoon everyone, just wondering if anyone knew if it's possible to send meetings or appointments through email when you run VBA or SQL code in Access 2003? The following is the code I've been...
0
by: sachintandon | last post by:
Hello all, Thanks in advance for your help I have a problem in sending emails, my requirement is to send multipart alternative emails with attachments, I'm able to send text with attachments or...
2
by: Robson Siqueira | last post by:
Folks, I've been experiencing a weird problem. I have a web service which sends an email after its processing. The email always has an PDF attachment on it. The PDF size vary overtime. The...
3
by: drnorbert | last post by:
What is the best way to receive and send emails in MsAccess? Could this be done without Outlook automatation?
0
by: damimkader | last post by:
Hi, I'm trying to send emails using a Macro based on an Excel Sheet and the Email Client I'm using is Lotus Notes. OS used - Windows Xp. Language - VB Below is the Code I'm using for doing...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.