MIME type for sending gzip file as attachment in email

Hello,

I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt.

mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file

file name is Report.csv.gz

Output status is below as seen in Jenkins

Mime type: application/x-gzip
Disposition: inline
Encoding type: none

Finished: SUCCESS

Please help to correct the above code.

Just mime type shouldn't corrupt a file. In what way is it corrupt? Compare the sent file to the received file with hexdump or the like.