Question Send Email With Zip File Attachment

wing

New Member
I have used the smtpmail to send the email and attachment (rar file). and success send to user.
But user unzip the attachment show the error message "file The archive is either in unknown format or damaged".
This rar file can unzip the file properly. Just fail unzip the attachment.
Please help!
 

Vaalen

Member
I have used the smtpmail to send the email and attachment (rar file). and success send to user.
But user unzip the attachment show the error message "file The archive is either in unknown format or damaged".
This rar file can unzip the file properly. Just fail unzip the attachment.
Please help!
Hi,

I have used this myself and I can remember that the encoding has to be base64. Although I sent a pdf.
 

Cecil

19+ years progress programming and still learning.
Stupid question. But the user unzip the .rar file, what is the application is the user using to un-compress the .rar file? I am going out on a limb and guess that the user's application cannot handle .rar files, hence the error message " The archive is either in unknown..."

If the user is on Windows try using 7zip application or if the user is using Linux try using the unrar command and not the unzip command.
 

Cecil

19+ years progress programming and still learning.
smtpmail.p automatically encodes binary files (.rar files) using the base64.
 
Top