Thanks everybody, I finally got things working. I bypassed MIME because, as I already said, I don't understand it well, and used base64 module and encoding... Everything is working as it should, thank you very much:)