Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. if($_POST['button'])
  2. {
  3.  
  4. $password=$_POST['pwd'];
  5.  
  6. if($arr['password']!=$password)
  7. {
  8.  
  9.  
  10. $body = "
  11. <table>
  12. <tr>
  13. <td>Your Password Changed By Admin</td>
  14. </tr>
  15. <tr>
  16. <td>Password</td><td>:</td><td>".$_REQUEST['password']."</td>
  17. </tr>
  18. <tr>
  19. <td>You can continue using your old email Id to login
  20. <tr>
  21. <td>Please click on this link to Login:<a href='http:index.php'>http:index.php</a></td>
  22. </tr>
  23. </table>";
  24. $email= $_REQUEST['username'];
  25. $mail = new PHPMailer();
  26. $mail->IsSMTP();
  27. $mail->Host = "mail.com";
  28. $mail->SMTPAuth = true;
  29. $mail->Username = 'smtp@.com';
  30. $mail->Password = '123';
  31. $mail->Port = '587';
  32. $mail->IsHTML(true);
  33. $mail->From='aa@.com';
  34. $mail->FromName='comnpany';
  35. $mail->AddAddress($email);
  36. $mail->Subject = "employee";
  37. $mail->Body = $body;
  38. $mail->Send();
  39.  
  40. }
  41.  
  42. header('Location:list_employees.php');
  43. exit;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement