Hi,
If I understood your questions here my solution.
Tip: Do not use " in html files...
externalFile.php
".$arrData[$i]['foo']." ".$arrData[$i]['bar']." ".$arrData[$i]
['baz']."\n";
}
?>
mailFile.php
Some
Header\n";
$strSubject = "This Is subject";
$strBody =
"
".$strFirsRow."
".$strExterna
On Mon, 2007-02-12 at 15:20 +0200, clive wrote:
> Robert Cummings wrote:
> > On Mon, 2007-02-12 at 14:52 +0200, clive wrote:
> >>> >>>
> >>> ob_start();
> >>> include( 'someFile.php' );
> >>> $content = ob_get_contents();
> >>> ob_end_clean();
> >>>
> >>> ?>
> >> no I think he need
On Mon, 2007-02-12 at 13:20 +, Edward Kay wrote:
> > > > I am using phpmailer for a rich html mailer and I have been using
> > > > lines like
> > > > this to build up the mailbody
> > > >
> > > > $mail_body .= " > > > src=\"http://www.myurl.org/mylogo.gif\";;
> > > >
> > > > Is there a build i
Robert Cummings wrote:
On Mon, 2007-02-12 at 14:52 +0200, clive wrote:
no I think he needs file_get_contents();
While that will certainly read PHP into a variable, it won't evaluate
the contents. Then you're stuck with eval. This has the undesirable
effect of not being able to take advantage
> > > I am using phpmailer for a rich html mailer and I have been using
> > > lines like
> > > this to build up the mailbody
> > >
> > > $mail_body .= " > > src=\"http://www.myurl.org/mylogo.gif\";;
> > >
> > > Is there a build in function to assign html code to a php
> > > variable and then
> > >
On Mon, 2007-02-12 at 14:52 +0200, clive wrote:
> > >
> > ob_start();
> > include( 'someFile.php' );
> > $content = ob_get_contents();
> > ob_end_clean();
> >
> > ?>
>
> no I think he needs file_get_contents();
While that will certainly read PHP into a variable, it won't evalua
no I think he needs file_get_contents();
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2007-02-12 at 12:27 +, Edward Kay wrote:
> > I am using phpmailer for a rich html mailer and I have been using
> > lines like
> > this to build up the mailbody
> >
> > $mail_body .= " > src=\"http://www.myurl.org/mylogo.gif\";;
> >
> > Is there a build in function to assign html code t
> I am using phpmailer for a rich html mailer and I have been using
> lines like
> this to build up the mailbody
>
> $mail_body .= " src=\"http://www.myurl.org/mylogo.gif\";;
>
> Is there a build in function to assign html code to a php
> variable and then
> output them? Or can I read an external
9 matches
Mail list logo