C# Creating and Sending Zip files with gmail
I'm trying to Zip and send .csv files using C#. I create the files, zip them and send them using an SMTP Gmail host. It can sometimes take this email several hours to reach it's destination. For testing I am using very small files so size isn't an issue. If I try to "manually" send these zips using gmail I get the following error: "myFile.csv.zip contains an executable file. For security reasons, Gmail does not allow you to send this type of file." I think there might be a problem with my compression method but it's very straight forward: string compressedFile = fileName + ".zip"; FileInfo fi