Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- }
- else
- {
- // the form has been submitted
- $from = $_POST [ 'sender' ];
- // send mail:
- if (mail( $to , $_POST [ 'subject' ], $_POST [ 'message' ], "From: $fromn" ))
- {
- echo "Your mail has been sent successfully" ;
- }
- else
- {
- echo "An error has been occured !" ;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment