Do you mean save the attachment to the server as a .html? I've tried that and as a .txt.
Or do you mean just changing the script. Here's a cut down version of the script that I'm using for debugging
#!/usr/local/bin/perl
##############################################################
#...
I tried that but same problem. The odd thing is that when I first open the attachment I can see the content for a millisecond - there must be something wrong with the header of the text file I guess.
I've got a mail script that tries to attach a text file to the mail. If I read the resultant mail in an html based mail reader it all seems ok. When I view it in Outlook there is an attachment of the correct size but the file
is empty.
The attach part of the script is
print MAIL<<EndOfAtt ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.