CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 dynamic content of body email

Print topic Send  topic

Author Message
mat
Posted: 07/10/2002, 1:29 PM

i'm trying to generate a dynamic content for body email. But i'm not sure how can i do this? Can someone give me some tips on how to do these or show me the sites that have some information for my problems.. thanks
Chris K.
Posted: 07/10/2002, 3:34 PM

Just build your email body as a string.

$body = "Welcome\n";
while ($db...)
$body .= $db->field."\n";
$body .= "Good bye";

Then pass it to the sending function/component as body string.

You could also keep email body in the database for changing it through administrative area. Put some placeholders inside message text for dynamic content and replace them before sending:

Body in database could be:

Welcome,

{listing}

Good bye

You can fill it using:

$body = Dlookup(...);
while(...)
$listing .= ....;
$body = str_replace("{listing}",$listing,$body);
<send $body>

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.