An example code would be:
- Code: Select all
function Func($text = 'hello')
$message = Func();
mail('firstname.lastname@example.org', '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?