Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($_POST['button'])
- {
- $password=$_POST['pwd'];
- if($arr['password']!=$password)
- {
- $body = "
- <table>
- <tr>
- <td>Your Password Changed By Admin</td>
- </tr>
- <tr>
- <td>Password</td><td>:</td><td>".$_REQUEST['password']."</td>
- </tr>
- <tr>
- <td>You can continue using your old email Id to login
- <tr>
- <td>Please click on this link to Login:<a href='http:index.php'>http:index.php</a></td>
- </tr>
- </table>";
- $email= $_REQUEST['username'];
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "mail.com";
- $mail->SMTPAuth = true;
- $mail->Username = 'smtp@.com';
- $mail->Password = '123';
- $mail->Port = '587';
- $mail->IsHTML(true);
- $mail->From='aa@.com';
- $mail->FromName='comnpany';
- $mail->AddAddress($email);
- $mail->Subject = "employee";
- $mail->Body = $body;
- $mail->Send();
- }
- header('Location:list_employees.php');
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement