UndercodeTesting

PHP UTC

Oct 14th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. }
  3. else
  4. {
  5. // the form has been submitted
  6. $from = $_POST [ 'sender' ];
  7. // send mail:
  8. if (mail( $to , $_POST [ 'subject' ], $_POST [ 'message' ], "From: $fromn" ))
  9. {
  10. echo "Your mail has been sent successfully" ;
  11. }
  12. else
  13. {
  14. echo "An error has been occured !" ;
  15. }
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment