RE: [PHP] Windows based Mail() problem (newbie)

2002-05-01 Thread John Holmes

PHP is server side, so it's going to do the same thing each time. If
it's sending a blank message, then no data was received. How is the
content of the message created? Is it from a text field? Is there any
javascript or similar client-side operations going on? Those could be
handled differently on different versions of the browser on different
OSs.

---John Holmes...

 -Original Message-
 From: Kim Kohen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 5:27 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Windows based Mail() problem (newbie)
 
 Hello all,
 
 I have a PHP/MySQL/Apache site served on Mac OSX.  The default install
I
 used doesn't have a PHP.ini file but I do have sendmail configured and
 working.
 
 There is a simple html form which leads to a 'confirmation' page.
They
 press the confirm button and a hidden field passes the data to
 'confirm.php'
 which simply mails it to us.
 
 It works perfectly from both Mac OSX and Mac OS9 clients with the mail
 being
 received with all data intact.  However, when accessed by a Windows
 machine
 running Explorer,  the sent mail contains no text. The email gets
 generated,
 addressed and sent OK, but with a blank message.
 
 I'm wondering if there's something simple I'm missing here as far as
 configuration is concerned?  Any assistance would be greatly
appreciated.
 
 Cheers and thanks
 
 kim
 
 FWIW, the entire confirm.php script follows:
 
 ?php
 mail([EMAIL PROTECTED], TEST ONLY , $web_submission);
 include(web_thanks.html);
 ?
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Windows based Mail() problem (newbie)

2002-05-01 Thread Kim Kohen

G'day John

 PHP is server side, so it's going to do the same thing each time. If
 it's sending a blank message, then no data was received.

Thanks for the response. I have been able to find the problem by replacing
my mail() with phpinfo().

It certainly wasn't passing the variables with Windows but is with Macs.  I
checked the HTML forma and found I had the enctype set to plain/text. I
changed it to multipart/form-data and now it works fine (although there are
still some strange things going on with line endings which I'll need to
resolve)

Cheers and thanks again

kim


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php