PHP Mail Script?

From: Tosha (tosha_at_mad.scientist.com)
Date: 08/30/04


Date: Mon, 30 Aug 2004 12:08:03 +0200

Is there any diffrence in writing the script running on Linux/apache and
win/IIS?

This is my script:

<?
$Surname = $_POST['Surname'];
$Name = $_POST['Name'];
$NameSurname = "$Name $Surname";

$sendto = "vladimir.tosovic1@du.htnet.hr";
$subject= $NameSurname;
$body = $_POST['Text'];

if(mail($sendto,$subject,$body))
{phpinfo();}
else {echo "Sending message failed"}
?>

...and it works fine on my localserver, but on the web server like
100webspace.com reports "Sending message failed".



Relevant Pages

  • Re: hitting the limits
    ... |>> It is so hard for me to judge if the code is efficient. ... | script running through an entire table of 20,000 records one by one. ... | an echo for each line and it was really interesting to see that sometimes ... Repair table <tablename> EXTENDED USE_FRM ...
    (comp.lang.php)
  • Passing Parameters Script
    ... I want to pass two parameters to a simple script running on my web server. ... echo "The parameters passed were: ... I'm new to PHP but am getting better. ...
    (comp.lang.php)