posted 13 years ago
Hi All. I am trying to attach a csv file to an email. However no matter what I try it is recieved with the file contents in the email body. Any Idea how I can get this to arrive as an email attachment?
My code is as follows:
The email is receieved like this:-
------=_Part_2_15995128.1272528614964
Content-Type: application/octet-stream; name=stats.csv
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=stats.csv
contents of csv file show here (removed for posting to forum)
------=_Part_2_15995128.1272528614964
Content-Type: text/html; charset=ISO-8859-9
Content-Transfer-Encoding: 7bit
Attached Are the statistics from one of the web servers
------=_Part_2_15995128.1272528614964--