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

[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 wel

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-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 = $_FILE

Re: [PHP] PHP Email Attachment problem

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

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
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 >

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 a

Re: [PHP] PHP Email Attachment problem

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

Re: [PHP] PHP Email Attachment problem

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

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 n

Re: [PHP] PHP Email Attachment problem

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

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 pl

Re: [PHP] PHP Email Attachment problem

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

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Chris Edwards
> 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

RE: [PHP] PHP Email Attachment problem

2003-04-03 Thread Steve Jackson
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,

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 actua

[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 custo

Re: [PHP] PHP Email Attachment problem

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

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 i

[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 custo

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 d

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 y

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 faxin

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 unsubs

[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 (http://www.php.net/)

Re: [PHP] Email Attachment

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

RE: [PHP] Email Attachment

2002-02-01 Thread Frank Hertogs
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

[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 t

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"; > > m

[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, $