I'm trying to test out if PHP works from my Firebase hosting using the following:
<form action="welcome.php" method="post"> <input type="submit"> </form>
<?php $to = "email@example.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: firstname.lastname@example.org"; mail($to,$subject,$txt,$headers); ?>
Every time I try this the browser keeps on attempting to open the PHP file rather than processing it. Is simple PHP enabled on the Firebase server hosting to process a simple form like this? If I can get it to work this way, I will be building the form out correctly including validation etc.