Possible Duplicate:
How do I ZIP a file in C#, using no 3rd-party APIs?
I have an application which creates two files, one is txt and the other is an image file. I want to zip them together and then send it using the computer's default email setup. The reason I need to zip them because I am using mail to Link method. Here is the code:
public static void Main()
{
SendMailWithMailTo(
"dvader@deathstar.mil",
"Rebel Base Detected",
"Hoth, baybee!!",
"\"C:\\Users\\Fett\\RebelBase[1].png\"");
}
So I can attach only one file. So I thought zipping might be a good idea? Also I am using .NET 4.0. I believe there are some built in assemblies in .NET 4.5 but my application requirement is .NET 4.o. Also I don't want to use any outside tools if possible.