Къде ми е грешката
//send email activation
$to = $email;
$subject = "Activate your account!";
$headers = "From: [email protected]";
$server = "smtp.abv.bg";
ini_set("SMTP",$server);
$body = "
Hello $fullname,\n\n
You need to activate your account with the link below
http://localhost/muarem/mywebsite/activate.php?id=$lastid&code=$random \n\n\
Thanks!
";
//function to send email
mail ($to, $subject, $body, $headers);
//send email activation
$to = $email;
$subject = "Activate your account!";
$headers = "From: [email protected]";
$server = "smtp.abv.bg";
ini_set("SMTP",$server);
$body = "
Hello $fullname,\n\n
You need to activate your account with the link below
http://localhost/muarem/mywebsite/activate.php?id=$lastid&code=$random \n\n\
Thanks!
";
//function to send email
mail ($to, $subject, $body, $headers);