Calling a Function inside the SendMail
- From: "Syl" <david.hunter@xxxxxxxxx>
- Date: 11 Apr 2006 08:41:05 -0700
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 ?
.
- Follow-Ups:
- Re: Calling a Function inside the SendMail
- From: Martyr2
- Re: Calling a Function inside the SendMail
- Prev by Date: OO PHP Referencing an instance of a class
- Next by Date: How to extract data from a Pear XML-RPC response (xml_rpc_value Object)
- Previous by thread: OO PHP Referencing an instance of a class
- Next by thread: Re: Calling a Function inside the SendMail
- Index(es):
Relevant Pages
|