you could do this by passing a UEL parameter in the universal email redirect:
pagename.php?sent=true
then use an if statement around the form to show the thank you message if the url variable equals true, or show the form if not:
<?php if(isset($_GET['sent']) && $_GET['sent'] == "true") { ?>
Thank you message
<?php } else { ?>
<form>
<?php } ?>