Re: MSWord attachment with mail()

From: Date: Tue, 24 Jun 2003 21:34:57 +0000
Subject: Re: MSWord attachment with mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152663@lists.php.net to get a copy of this message
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


« previous php.general (#152663) next »