Re: mail with attachment

From: Date: Thu, 09 Dec 2004 02:00:08 +0000
Subject: Re: mail with attachment
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-203779@lists.php.net to get a copy of this message
Hello, Dre wrote:
Thanks Manuel, I will check the class and here is the code of the mail sending script //====================================================== <?php $att_name = $_POST['att']; echo $att_name; $att_size = filesize($att_name); $handle= fopen($att_name, "r"); $file = fread($handle, $att_size);
You need to open the file as binary but I do not think that could cause the problem that you described. Did you try the class that I mentioned? Did it work? -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html

« previous php.general (#203779) next »