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

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



Reply via email to