Hello Jerry,
I think to solve your problem you should copy the tempfile to a new
directory
copy($attachment, "/path/to/".$attachment_name);
And now you can open it with fopen.
But you should risk a look at this:
http://www.php.net/manual/en/features.file-upload.php
Try it.
--
PHP Win
Hello Jerry,
PHP creates automatically an temp copy of your attachment.
> It seems like the attachment has to be uploaded to the
> server first before sending the attachment.
I think the encoding of your form isn't correct.
Try to put in your form tag this: enctype="multipart/form-data"
> I attac
Hi All,
I'm a newbie trying to create a form that will allow the user send an
attachment. I got everything working when I run it from the web server but
not from any other pc. I looked at a lot of examples but I am obviously
missing something. It seems like the attachment has to be uploaded to the