I've created a function for sending mail via SMTP. This works just fine, until i try to send binary files. When i receive the binary file, it has wrong format, and i'm unable to execute it. Whein i open the file in notepad, it has a line break every 990(approximately) bytes.
Does anyone know how to avoid this?
I wonder if this has anything to do with the "Content-type" parameter?
I'm reading this info from the registry(HKCR\.<extension>\Content-type), and i use "Text/Plain" if no content-type data is found