I am a novice programmer of perl and I would like to create a CGI script that reads form data and attaches an image. I am able to send data with $SMTP, and I can upload, open and store in an array the image. My problem is that when I send the scalar through $SMTP it comes out in machine language (probably hex or ascii). I am unable to send the image as an image. My server uses a windows based environment, not UNIX, and so I cannot use the sendmail function or MIME to transfer the data. I am a little bewildered. Any help would be great.