An example code would be:
- Code: Select all
<?php
function Func($text = 'hello')
{
echo $text;
};
$message = Func();
mail('example@example.com', 'Your email', $message);
?>
When I execute the script, the defined function is carried out on the page and the email is blank. How can I get the $text to show in the email, and not on the page? Any ideas?



