I found the culprit!
I copied the filereading part without checking too good, and it had an
"addslashes" call which ruined the file content very professionaly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
I've made a form to send out emails with attachments, and the attachments
look ok when they arrive but the content is somehow bad. I cannot open gifs
nor can word open the documents. Looking at the content something may be
wrong with the encoding: if i open the GIF file the normal one as wel
On Saturday 05 April 2003 00:41, 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
Michael Arena wrote:
When I put change the line you suggested to "
Line25 $fileatt =
"/home/sites/webserver.agraservices.net/web/mike/$_POST['fileatt']";
$fileatt_type = $_FILES['fileatt']['type'];// Type of
file being sent
$fileatt_name = $_FILE
sage -
From: "Burhan Khalid" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: "Michael Arena" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 1:21 PM
Subject: Re: [PHP] PHP Email Attachment problem
> Michael Arena wrote:
> > d
Michael Arena wrote:
did that...still sends only a file called ".txt" size zero ?
try replacing $fileatt with $_POST['fileatt']
--
Burhan Khalid
phplist[at]meidomus[dot]com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;
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
>
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 a
: base64\n\n" .
$data . "\n\n" .
"--{$mime_boundary}--\n";
}
mail($to, $subject, $message, $headers);
echo "Thanks for sending mail";
?>
-end upload.php code
thanks again for your help,
Mike
- Origin
p.general
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 1:36 AM
Subject: Re: [PHP] PHP Email Attachment problem
> On Friday 04 April 2003 06:10, Michael Arena wrote:
> > Made some progress today. Found an attachment script in the archives. I
> > was able to send an
On Friday 04 April 2003 06:10, Michael Arena wrote:
> Made some progress today. Found an attachment script in the archives. I
> was able to send an email attachment if it was already on the server. now i
> just need the file to come from a form instead of already being on the
> server but that's n
$data . "\n\n" .
"--{$mime_boundary}--\n";
}
mail($to, $subject, $message, $headers);
echo "Thanks for sending mail";
?>
---end upload.php code-
any suggestions on how to get this form going
thanks a million, you
On Thursday 03 April 2003 22:30, Michael Arena wrote:
> I just checked the directory that I specified for temporary uploads
> (/tmpuploads) and there is nothing there which leads me to believe the file
> isn't getting uploaded.
I'm not sure *how* you're checking that there's nothing there but pl
PHP.ini file if you want to check that out as
well because I didn't see anything in there called file_upload.
Thanks,
Mike
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03,
>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 8:00 AM
Subject: RE: [PHP] PHP Email Attachment problem
> I also had a similar problem and it was simply because the directory
> holding the attachment didn't have permission to send the attachment, so
> check the perm
s.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]
> Sent: 3. huhtikuuta 2003 8:23
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Email Attachment problem
>
>
> On Wednesday 02 April 2003 04:19,
On Wednesday 02 April 2003 04:19, Michael Arena wrote:
> the only difference in the server setup is on my remote server it's a RAQ
> and locally i'm using Xitami with PHP. I don't understand why it won't
> send. I get the email over the RAQ but no attachment...
Have you checked that the file actua
Hello,
I want to send an email attachment using PHP and the below code works
locally but when i upload to my RAQ Cobalt server it doesn't send the
attachment and i can't figure out why. If you can offer me any guidance as
to why this is happening it is greatly appreciated.
**The sendmail is a custo
in the php.ini
file?
Thanks,
Mike
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 2:49 PM
Subject: Re: [PHP] PHP Email Attachment problem
> On Wednesday 02 April 2003 03:
On Wednesday 02 April 2003 03:33, Mike wrote:
> I want to send an email attachment using PHP and the below code works
> locally but when i upload to my RAQ Cobalt server it doesn't send the
> attachment and i can't figure out why. If you can offer me any guidance as
> to why this is happening it i
Hello,
I want to send an email attachment using PHP and the below code works
locally but when i upload to my RAQ Cobalt server it doesn't send the
attachment and i can't figure out why. If you can offer me any guidance as
to why this is happening it is greatly appreciated.
**The sendmail is a custo
Jason Wong wrote:
> On Thursday 02 May 2002 19:31, 1LT John W. Holmes wrote:
> > > Do we have to upload the file first, which is to be attached?
> >
> > No. When you press the submit button, just speak slowly and clearly where
> > the file is and PHP will understand you. What kind of video card d
In article <001401c1f1cc$f5461dc0$2f7e3393@TB447CCO3>,
[EMAIL PROTECTED] says...
> > Do we have to upload the file first, which is to be attached?
>
> No. When you press the submit button, just speak slowly and clearly where
> the file is and PHP will understand you. What kind of video card do y
On Thursday 02 May 2002 19:31, 1LT John W. Holmes wrote:
> > Do we have to upload the file first, which is to be attached?
>
> No. When you press the submit button, just speak slowly and clearly where
> the file is and PHP will understand you. What kind of video card do you
> have?
I prefer faxin
> Do we have to upload the file first, which is to be attached?
No. When you press the submit button, just speak slowly and clearly where
the file is and PHP will understand you. What kind of video card do you
have?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubs
hi all,
i m using php4.0.1
can anyone pls help me out, in doing email-attachment.
the code written for it, working and sending the email but the attachment is
not getting done.
Do we have to upload the file first, which is to be attached?
swati.
--
PHP General Mailing List (http://www.php.net/)
ot;\n";
> $body .= "Content-Transfer-Encoding: base64\n";
> $body .= "Content-disposition: attachment; filename=\"attach.pdf\"\n\n";
> $enc_pdf = chunk_split(base64_encode($buffer));
> $body .= $enc_pdf . "\n"; }
> $body .= "--Message-Bound
achment; filename=\"attach.pdf\"\n\n";
$enc_pdf = chunk_split(base64_encode($buffer));
$body .= $enc_pdf . "\n"; }
$body .= "--Message-Boundary--\n";
//mail actual message
mail($email, $subject, $body, $x_headers);
}
I hope this helps you.
Frank.
-Oorspr
Hello, I'm new in php development... I was wondering how can I attach a Word
(.doc) Document in an email sent with the mail() function (if I can do it
just with it).
I know it has to see with the additional headers of the email, but I would
be grateful If anyone could tell where can i go to for t
> I know how to send a standard email, but I`m having a bit of trouble
adding
> an attachment, can anyone put me right?
>
> this is my code which works fine...
>
> $subject="Hi";
> $email="[EMAIL PROTECTED]";
> $from="[EMAIL PROTECTED]";
> $message="Hi this is me testing my PHP mail script";
>
> m
Hi,
I know how to send a standard email, but I`m having a bit of trouble adding
an attachment, can anyone put me right?
this is my code which works fine...
$subject="Hi";
$email="[EMAIL PROTECTED]";
$from="[EMAIL PROTECTED]";
$message="Hi this is me testing my PHP mail script";
mail($email, $
31 matches
Mail list logo