Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. $to = $email; // Send email to our user
  2. $subject = 'Signup | Verification'; // Give the email a subject
  3. $message = '
  4.  
  5. Thanks for signing up!
  6. Your account has been created, you can login with the following credentials after you have activated your account by pressing the url below.
  7.  
  8. ------------------------
  9. Username: '.$name.'
  10. Password: '.$password.'
  11. ------------------------
  12.  
  13. Please click this link to activate your account:
  14. http://www.yourwebsite.com/verify.php?email='.$email.'&hash='.$hash.'
  15.  
  16. '; // Our message above including the link
  17.  
  18. $headers = 'From:noreply@yourwebsite.com' . "\r\n"; // Set from headers
  19. mail($to, $subject, $message, $headers); // Send our email
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement