oops that was for downloading...
but anyway, the application/msword is worth a try


At 23:34 24-6-2003, you wrote:
At 22:57 24-6-2003, you wrote:
Dear list,
What header must I use to send a MSWord attachment with mail()?
I have looked it up in the manual and on php.net but cannot find it.

for a cvs file aimed at excel i use



if (strstr($_SERVER["HTTP_USER_AGENT"],"MSIE 5.5")) {$att = "";} else {$att = " attachment;";}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0


header("Content-type: text/csv");
header('Content-Disposition: inline; filename="Aanmeldingen_SENSE_symposium_2003.csv"');
echo $string_csv;




for word i suppose one could use

header("Content-type: application/msword");






-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to