I want to send an email using the mail command. I would like the message
parameter to be the contents of a text file. However, I want the text file
to use variables from within the program.
If I use join("", file($file_name )) the text file isn't evaluated ( $var is
printed as $var, not the contents of the variable).
If I use $message = include($file_n ame) I get $message = 1 and the text file
is output to the browser.
I believe there might be some way around this using %% perhaps. I can't
remember exactly.
Thanks for the ongoing help.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 06/02/2004
parameter to be the contents of a text file. However, I want the text file
to use variables from within the program.
If I use join("", file($file_name )) the text file isn't evaluated ( $var is
printed as $var, not the contents of the variable).
If I use $message = include($file_n ame) I get $message = 1 and the text file
is output to the browser.
I believe there might be some way around this using %% perhaps. I can't
remember exactly.
Thanks for the ongoing help.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 06/02/2004
Comment