[PHP] email attachment cannot be opened

2003-09-12 Thread Chris Hayes
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

Re: [PHP] email attachment cannot be opened (solved)

2003-09-12 Thread Chris Hayes
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

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
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 email attachment if it was already on the server. now i

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
thanks again for your help, Mike - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.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

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
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

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
] 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

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
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

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Michael Arena
PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:21 PM Subject: Re: [PHP] PHP Email Attachment problem 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

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Burhan Khalid
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 =

Re: [PHP] PHP Email Attachment problem

2003-04-04 Thread Jason Wong
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

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Michael Arena
this form going thanks a million, you've been a big help, Mike - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:48 AM Subject: Re: [PHP] PHP Email Attachment problem On Thursday 03 April 2003

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Jason Wong
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 not

RE: [PHP] PHP Email Attachment problem

2003-04-03 Thread Steve Jackson
[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, Michael Arena wrote: the only

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Chris Edwards
: 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 permissions on the directory. Once I changed it it sends fine

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Michael Arena
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, 2003 12:23 AM Subject: Re: [PHP] PHP Email Attachment

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Jason Wong
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

[PHP] Email Attachment Problem....

2003-04-02 Thread Mike
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

Re: [PHP] PHP Email Attachment problem

2003-04-02 Thread Jason Wong
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

[PHP] PHP Email Attachment problem

2003-04-01 Thread Mike
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

Re: [PHP] PHP Email Attachment problem

2003-04-01 Thread Jason Wong
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 is

Re: [PHP] PHP Email Attachment problem

2003-04-01 Thread Michael Arena
? 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:33, Mike wrote: I want to send an email attachment

[PHP] Email-attachment not working

2002-05-02 Thread Swati Patil
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

Re: [PHP] Email-attachment not working

2002-05-02 Thread 1LT John W. Holmes
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

Re: [PHP] Email-attachment not working

2002-05-02 Thread Jason Wong
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 faxing the

Re: [PHP] Email-attachment not working

2002-05-02 Thread David Robley
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 you

Re: [PHP] Email-attachment not working

2002-05-02 Thread Ashley M. Kirchner
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 do you

Re: [PHP] Email Attachment

2002-02-04 Thread Mauricio Sthandier
Mauricio Sthandier [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 1 februari 2002 20:45 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Email Attachment 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

[PHP] Email Attachment

2002-02-01 Thread Mauricio Sthandier
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

RE: [PHP] Email Attachment

2002-02-01 Thread Frank Hertogs
. -Oorspronkelijk bericht- Van: Mauricio Sthandier [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 1 februari 2002 20:45 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Email Attachment Hello, I'm new in php development... I was wondering how can I attach a Word (.doc) Document in an email sent

Re: [PHP] Email Attachment

2001-02-03 Thread Richard Lynch
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";

[PHP] Email Attachment

2001-02-01 Thread Website4S
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,