Email Not sending - hellllpppp

Hi there clever people i a little bit of extra help with email/mailer.
i have a IIS with PHP and i have a php page with a email script. if i run it i get an email straight back, but cant figure it out how to setup in wappler.

my script
<?php
ini_set( ‘display_errors’, 1 );
error_reporting( E_ALL );
$from = “myemail@email.com”;
$to = “to@email.com”;
$subject = “PHP Mail Test script”;
$message = “This is a test to check the PHP Mail functionality”;
$headers = “From:” . $from;
mail($to,$subject,$message, $headers);
echo “Test email sent”;
?>

so the above runs perfectly on the same website!!

any help would be appreciated.
regards vitor

Community Page
Last updated: