Re: php mail: attach file in same director

From: Date: Sat, 24 Aug 2002 23:08:36 +0000
Subject: Re: php mail: attach file in same director
Groups: php.general 
Request: Send a blank email to php-general+get-114000@lists.php.net to get a copy of this message
>I have a file filedoc1.doc in same directory with index.php. >How to make mail() function in index.php to send mail to someone and atach >this file: > mail($to, $Subject, $body, $header, $params) You'll probably be best off just using somebody else's code such as the mail class at http://phpclasses.org While you could roll your own, the hassle factor of generating valid boundaries and correctly encoding the data to attach are a lot harder than a newbie usually expects... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#114000) next »