Thanks Chris, Dorgon and Esteban for putting me back on the track. ----- Original Message ----- From: "Chris Hayes" <[EMAIL PROTECTED]> To: "Alberto Brea" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 24, 2003 4:34 PM Subject: Re: [PHP] MSWord attachment with mail()
> 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