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.