na een test ronde van mijn script blijkt dat het registratie mailtje niet wordt verstuurd naar de gebruiker.
//mail
registrate_mail2($email, $realname, $verification);
en de mail:
function registrate_mail2 ($email, $realname, $validationkey) {
$to = $email;
$subject = 'Widm - Havik editie game registration succesful';
$message = "Dear $realname,<br>
Welcome to the Widm - Havik editie game!<br><br>
You have received this email because this email address was used during registration for our site.
If you did not register at our site, please disregard this email. You do not need to unsubscribe or take any further action.<br><br>
<b>Activation Instructions</b><br>
Thank you for registering.
We require that you validate your registration to ensure that the email address you entered was correct. This protects against unwanted spam and malicious abuse.
To activate your account, simply click on the following link:<br>
http://widm-dehavik.net78.net/activation.php?verification=$verification<br>
(Some email client users may need to copy and paste the link into your web browser).<br><br>
<b>Not working?</b><br>
If you could not validate your registration by clicking on the link, please visit this page:
http://widm-dehavik.net78.net/activation.php
It will ask you for a validation key, which is shown below:<br><br>
<b>Validation Key:</b><br>
$verification<br><br>
Please copy and paste, or type those numbers into the corresponding field in the form.
If you still cannot validate your account, it's possible that the account has been removed.
If this is the case, try to register again, or contact an administrator to rectify the problem.
This email is generated automatically, and on that reason you can't respond to this email address.<br><br>
Thank you for registering and enjoy your stay!";
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n";
$headers .= "Content-type: text/html\r\n";
mail($to, $subject, $message, $headers);
}
wie ziet foutje en helpt mij?