dynamically insert an HTML code in the file, before mailing
Posted: Tue Aug 22, 2006 3:36 am
JayBird | Please use
Now this $MessMast has the html code, and at a later stage of the script, just before we send it, I need to insert some parameters
JayBird | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
In a certain email program, we are sending the mail as an html file. The file was uploaded earlier. We want an additional html line to be entered into the code, before the mail function is executed.
this is the code:Code: Select all
$Htmlfile="Upload/Html/".$a;
$fp=fopen($Htmlfile,"r");
$HtmlCode=fread($fp,filesize($Htmlfile));
fclose($fp);
$MessMast .= $HtmlCode;
$MessMast .= chr(13) ;JayBird | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]