Re: mail with attachment
| From: | Dre | Date: | Thu, 09 Dec 2004 10:32:47 +0000 |
| Subject: | Re: mail with attachment | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203800@lists.php.net to get a copy of this message | ||
I did not try it yet .. but I will
"Manuel Lemos" <mlemos@acm.org> wrote in message
news:41B7B1A8.7080205@acm.org...
> 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