|
Posted by Syl on 04/11/06 18:41
Hi Group - I have a function to send an email to a client after they
have successfully submitted a form on my site. I have a 2nd function
that prints their input to the browser as a confirmation.
I'd like to be able to include that print function inside my mail
message like this :
function sendToClient($email) {
$subject = 'Confirmation';
-----> $message = printConfirm($lang); <----
$headers = 'MIME-Version: 1.0' . "\r\n";
<snip>, etc
mail($to, $subject, $message, $headers);
}
This way I don't have to duplicate the output. The confirmation will
get printed to the browser AND the exact same content will be emailed.
When I executer this the email is blank.
Any expert ideas out there ?
Navigation:
[Reply to this message]
|