Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function sendActivation($name, $user, $pass, $activationKey)
- {
- $to = $user;
- $subject = 'Account Activation';
- $headers = "From: noreply@domain.tldrn";
- $headers .= "MIME-Version: 1.0rn";
- $headers .= "Content-Type: text/html; charset=UTF-8rn";
- $message = "<div id='mail' style='height: auto; width: 500px;background-color: #DDDDDD; font-family: Tahoma, Arial, sans-serif;'>
- <p>Hello dear $name and thanks for your choise!</p>
- <p>Your details:</p>
- <p>Username: $user</p>
- <p>Password: $pass</p>
- <p><br /></p>
- <p>Here there is an activation link. Please click on it to activate your account.
- If you don't activate your account in next 24 hours, your account will be deleted automaticly.</p>
- <p><a href='" . BASE_PATH. "/register/activation/$user/$activationKey'>Activate Your Account!</a></p>
- </div>";
- if (mail($to, $subject, $message, $headers))
- return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement