include?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Jerzykowski

    include?

    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


  • Mark Jerzykowski

    #2
    Re: include?

    No need to write anything. I found the OB functions etc. Very useful.

    Thanks.

    "Mark Jerzykowski" <markjerz2@hotm ail.com> wrote in message
    news:c0hbij$p2v $1@news.ox.ac.u k...[color=blue]
    > 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[/color]
    is[color=blue]
    > printed as $var, not the contents of the variable).
    > If I use $message = include($file_n ame) I get $message = 1 and the text[/color]
    file[color=blue]
    > 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
    >
    >[/color]


    ---
    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

    Working...