Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-06 Thread PHP Junkie
Ave, One more thing I'd like to point out, which I just discovered. The php code I was using earlier, prior to using Manuel's mail class... Was not able to send any kind of attachment except .txt files. Niether images nor pdf nor anything would go through without being corrupted. However, using M

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-06 Thread PHP Junkie
Ave, Manuel... I saved the new email_message.php class that you sent me replacing the old one. I used the test_attachment_message.php to test the new class. This time it didn't send the email with the corrupted attachments, instead, gave me an error on the screen... This is the error that I recei

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, On a hunch.. I uploaded my original php script AND the php mime class to a normal linux server with Apache web server... And all the scripts are running fine! The PDF attachments go through fine. So I finally found out.. It's a MAC issue! Using my scripts on the MAC server is

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Ave, I replaced the code and added my PDF file in the required place, and this is what it displays now: Size 35823 Read 36704 I'll put in your address and send out the mail your way with the PDF attachment using the class script. Thanks a lot, Junkie On 10/5/04 3:51 PM, "Manuel Lemos" <[EMAI

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Manuel, Really appreciate your help. I created a new empty php file and put your given code in it. Upon running the test.php in my browser, it prints exactly this in my browser: could not open file I have a PowerMac G5 Machine, with MacOS X. I have PHP 5 installed from entropy.ch and have the i

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Ave, On a hunch.. I uploaded my original php script AND the php mime class to a normal linux server with Apache web server... And all the scripts are running fine! The PDF attachments go through fine. So I finally found out.. It's a MAC issue! Using my scripts on the MAC server is causing the pro

Re: [PHP] Re: PHP Attachement Problems

2004-10-05 Thread Greg Donald
On Tue, 05 Oct 2004 15:04:14 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote: > I just tried your php mime class. I tried the test_attachment_message file. > It did the same to the pdf attachment. Have you tried sending other PDFs by chance? Have you tried opening the PDF with other PDF viewers after

Re: [PHP] Re: PHP Attachement Problems

2004-10-05 Thread PHP Junkie
Ave, I just tried your php mime class. I tried the test_attachment_message file. It did the same to the pdf attachment. Initially, it tested with a text and an image. The text attachment opened without a problem but the image was giving an error in opening. I left the text file attachment as is a

[PHP] Re: [PHP Attachement Problems

2004-10-05 Thread Manuel Lemos
Hello, On 10/04/2004 10:24 AM, Php Junkie wrote: I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF file I'm sending attached open up empty! They are all blank.. Like everythin

[PHP] [PHP Attachement Problems

2004-10-04 Thread PHP Junkie
Ave, I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF file I'm sending attached open up empty! They are all blank.. Like everything has been wiped off from them!! Here's my

Re: [PHP] attachement

2002-11-10 Thread Jonathan Sharp
see http://phpmailer.sourceforge.net -js Oliver Witt wrote: > Hi, > I wrote a php script that's supposed to enable me to attach files to an > email. However, the attached files ends up being a mess of letters. > "Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is that > a common p

Re: [PHP] attachement

2002-11-10 Thread Oliver Witt
Ernest E Vogelsinger schrieb: > At 15:27 10.11.2002, Oliver Witt said: > [snip] > >I had it set like this: > > > >$fp = fopen($file, "r"); > >$contents = fread($fp, $file_size); > >$encoded_file = chunk_split(base64_encode($contents)); > >fclose($fp); > > >

Re: [PHP] attachement

2002-11-10 Thread Ernest E Vogelsinger
At 15:27 10.11.2002, Oliver Witt said: [snip] >I had it set like this: > >$fp = fopen($file, "r"); >$contents = fread($fp, $file_size); >$encoded_file = chunk_split(base64_encode($contents)); >fclose($fp); > > ... > >$body.= "\n\n--Message-Boundary\n"; >$body

Re: [PHP] attachement

2002-11-10 Thread Oliver Witt
Ernest E Vogelsinger schrieb: > In your mail headers, you should see some MIME like > > Content-Type: multipart/alternative; > boundary=GU4wuTSk68F > > ("alternative" could also read "related" - depends on the content, the > "multipart" is the point here) > > which would te

Re: [PHP] attachement

2002-11-10 Thread Ernest E Vogelsinger
At 14:31 10.11.2002, Oliver Witt said: [snip] >I wrote a php script that's supposed to enable me to attach files to an >email. However, the attached files ends up being a mess of letters. >"Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is tha

Re: [PHP] attachement

2002-11-10 Thread Rick Emery
uot;,25,&$erno, &$errstr); if(!$f) { $this->send(); } else { //SNMP commands Not finished yet echo fgets($f,512); fputs($f, "HELO host.com\n"); echo fgets($f,512); fputs($f, "MAIL FROM: ".$this->from. "\n"); echo

[PHP] attachement

2002-11-10 Thread Oliver Witt
Hi, I wrote a php script that's supposed to enable me to attach files to an email. However, the attached files ends up being a mess of letters. "Hallo" becomes "SGFsbG8=". That must have to do with encoding. Is that a common problem or do you need the entire script? Thanks, Olli -- PHP General M