Ok i rewrote the php mail but now i get another error ...
here's the code :
<?
$send=trim($send);
$mailto=trim($mailto);
$sub=trim($sub);
$body=trim($body);
$from=trim($from);
$password=trim($password);
if($password != '' && $password = 'passwd') {
if($mailto != '' && $sub != '' && $body != '' && $from != '' && $send != '') {
mailer($mailto,$sub,$body,$from,$send);
}
else {
formmail();
}
}
else {
passform();
}
function mailer($mailto,$sub,$body,$from,$send) {
$x = 0;
while($x < $send) {
$x = $x + 1;
mail($mailto,$sub,$body,"from: $from");
echo "
<br>Message sent $send times :
<br>To : $mailto
<br>From : $from
<br>Number of times : $send
<br>Subject : $sub
<br>Message Body : $body
";
}
function formmail() {
echo '
<form action="mailer.php" method="post">
Mail To: <input type="text" name="mailto"><br>
From: <input type="text" name="from"><br>
Number to send: <input type="text" name="send" size="20" value="1"><br>
Subject: <input type="text" name="sub"><br>
Message: <input type="text" name="body" size="23">
<input type="submit">
</form>
';
}
function passform() {
echo '
<form action=mailer.php method="post">
Enter Password : <input type="password" name="password">
';
}
?>
or you can go to www.mycgiserver.com/~zruya/mailer.phps
here's the error :
Parse error: parse error in /wwwroot/mycgiserver.com/members/cRyNOvBTp6Mp2GpPUErAZruMcANwrwQ9/mailer.php on line 59
please note : adding a ';' in the end a line before the ?> doesn't help 🙁
please tell me whats the problem ?!? what am i doing wrong ?!?
thanks in advance .