Advertisement
Fadly31337

Simple Test Mailer

Apr 16th, 2020
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.  
  4. ?>
  5. Upload is <b><color>WORKING</color></b><br>
  6. Check  Mailling ..<br>
  7. <form method="post">
  8. <input type="email" placeholder="E-Mail" name="email" value="<?php print $_POST['email']?>"required ><input type="text" placeholder="Order ID" name="orderid" value="<?php print $_POST['orderid']?>" ><br>
  9. <input type="submit" value="Send test ..">
  10. </form>
  11. <br>
  12. <?php
  13. $email = trim ($_POST['email']);
  14. if (!empty($email)){
  15.     if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
  16.  
  17.         if (!empty($_POST['orderid'])){
  18.             $xx =  ($_POST['orderid']);
  19.         }
  20.         else{
  21.             $xx = rand();      
  22.         }
  23.        
  24.         mail($email,"Result Report Test - ".$xx,"WORKING !");
  25.         print "<b>send an report to [".$email."] - Order : $xx</b>";
  26.     }
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement