Hello,
What you were seeing wasn't machine code, it was an image (albiet not decoded into a pretty picture) in the body of the email. As
IlyaM suggested, you will want to wrap the image in a MIME boundary in your email, probably with
MIME::Lite . A
google search for "mime rfc" will give you some good reading material on MIME (Multipurpose Internet Mail Extensions),