bonzo meier
Member
- Messages
- 47
- Reaction score
- 0
- Points
- 6
hi,
I wrote a script that is supposed to send data from a html-form to an email-recipient. it works fine on php5, but on a win-server with php4 it doesn´t.
here´s the script:
now I keep getting the $send_msg "mail has been sent" while nothing arrives...
anyone knows what´s wrong?
peace, bonzo
I wrote a script that is supposed to send data from a html-form to an email-recipient. it works fine on php5, but on a win-server with php4 it doesn´t.
here´s the script:
Code:
$mailto = "mail@domain.com";
$from_subject = "blabla";
// the $_POST is coming from the form
$headers = "From: " . $_POST['EMAIL'] ."\n";
$headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
if (@mail($mailto, $from_subject, "Bonzo loves you!", $headers)) {
$send_msg = "mail has been sent";
else $send_msg ="no mail, sorry!";
now I keep getting the $send_msg "mail has been sent" while nothing arrives...
anyone knows what´s wrong?
peace, bonzo