Skrypt do wysyłania maili - mógłby ktoś sprawdzić?


(Jablek 88) #1

Kod :

<?

//your e-mail address:

$eaddress = 'a.jaklik@gmail.com';

//your webpage that you want it to be directed to:

$address = 'http://iremax.com.pl/';


function valid_email($emaila)

{

     if (ereg("^[a-zA_Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $emaila))

          return true;

     else

          echo '

Please enter a valid e-mail address
'; echo '
You are being redirected Or click " here" If you do not wish to wait.
'; exit(); } function valid_name($names) { if(strlen($names)>0) return true; else echo '
Please enter your name.
'; echo '
You are being redirected Or click " here" If you do not wish to wait.
'; reset($_POST); exit; } function valid_comm($comms) { if(strlen($comms)>0) return true; else echo '
Please enter your question(s) or comment(s).
'; echo '
You are being redirected Or click " here" If you do not wish to wait.
'; reset($_POST); exit; } function valid_eemail($eemail) { if(strlen($eemail)>0) return true; else echo '
Please enter your email address.
'; echo '
You are being redirected Or click " here" If you do not wish to wait.
'; reset($_POST); exit; } function valid_sub($subje) { if(strlen($subje)>0) return true; else echo '
Please enter subject.
'; echo '
You are being redirected Or click " here" If you do not wish to wait.
'; reset($_POST); exit; ?>[/code] daje tak i mi nie działa , wyskakuje
[code] Parse error: syntax error, unexpected $end in /var/www/sites/yoyo.pl/i/r/iremax/config.php on line 59