I am trying to send an email using Simple Java Mail API. The email will contain a CSV ZIP file attachment. Should I use text/csv
or application/zip
for the mime type of the attachment?
A zip file is a zip file, no matter what it contains.
It should be application/zip
.
It is not a CSV file, if you tried to parse it as CSV it would fail. It is not text/csv
.