Re: PHP Email Attachment problem
| From: | Michael Arena | Date: | Fri, 04 Apr 2003 17:44:25 +0000 |
| Subject: | Re: PHP Email Attachment problem | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142380@lists.php.net to get a copy of this message | ||
did that...still sends only a file called ".txt" size zero ?????
thanks for the help,
mike
----- Original Message -----
From: "Burhan Khalid" <phplist@meidomus.com>
Newsgroups: php.general
To: "Michael Arena" <marena@magnatechonline.com>;
<php-general@lists.php.net>
Sent: Friday, April 04, 2003 11:48 AM
Subject: Re: [PHP] PHP Email Attachment problem
> Michael Arena wrote:
> > After reading the file_upload section on PHP.net i got the following
script
> > working on the server..it sends an attachment from a form now but it's
just
> > of size 0 and always a txt file. I know it must be some little thing
wrong
> > then this will work, maybe you can eye it for me and let me know if you
> > think i should change anything..
> >
> [ snip ]
>
> if ($fileatt != "")
> > {
> > $uploaddir = '/home/sites/webserver.agraservices.net/web/mike/';
> > echo "it found the attachment";
> > move_uploaded_file($_FILES['fileatt']['tmp_name'], uploaddir .
> > $_FILES['fileatt']['name']);
> > }
>
> uploaddir needs to be $uploaddir in your move_uploaded_file function
>
> [ snip ]
>
> --
> Burhan Khalid
> phplist[at]meidomus[dot]com
>
>