in reply to Emailing ZIP Attachment

SMTP only understands 7-bit ASCII characters. Anything you want to send via email that's not in that character set needs to be encoded in such a way that it is. For binary attachments you should use Base64 encoding.

I'd recommend using the modules from the Perl Email Project, they make the whole business of sending email relatively painless. In this case you should look at Email::MIME::Creator and Email::Send.


Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan