Guest User

Untitled

a guest
Feb 19th, 2014
18,518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. // ini_set('SMTP', "smtp.numericable.fr");
  2. // ini_set("smtp_port","25");
  3. $admin_email = "[email protected]";
  4. $user_email = $this->request->data['email'];
  5. $msg = "To activate your account, please click on this link : http://localhost"
  6. . Router::url('/') . "users/activate?email="
  7. . urlencode($user_email) . "&key=$token";
  8. $headers = 'MIME-Version: 1.0' . "\n"; // Version MIME
  9. $headers .= 'Reply-To: '.$admin_email."\n"; // Mail de reponse
  10. $headers .= 'From: "'.$admin_email.'"'; // Expediteur
  11. $headers .= 'Delivered-to: '.$user_email."\n"; // Destinataire
  12. if(mail($user_email, "Registration Confirmation", $msg, $headers))
  13. {
  14. echo "ca marche ?";
  15. }
  16. else
  17. {
  18. echo "marche po";
  19. }
Advertisement
Add Comment
Please, Sign In to add comment