Jump to content

<?html?>


RON_ron

Recommended Posts

it goes like this....

 

$to = $emailer;

$sender = "Daisy Toys<[email protected]>";

$subject = "Daisy Toys Newsletter for - $company";

$message = "<HTML>

<head>

///////////other html Stuff

<?php require( dirname( __FILE__ ) . '/../../folder/file.html' );

</BODY>

</HTML>";

mail($emailer, $subject, "", $headers); 

Link to comment
https://forums.phpfreaks.com/topic/253142--/#findComment-1297791
Share on other sites

Try

 

<?php

$to = $emailer;
$sender = "Daisy Toys<[email protected]>";
$subject = "Daisy Toys Newsletter for - $company";
$message = "<HTML><head>///////////other html Stuff " . require("filelocation.php") . "</BODY></HTML>";
mail($emailer, $subject, "", $headers);  

?>

Link to comment
https://forums.phpfreaks.com/topic/253142--/#findComment-1297795
Share on other sites

Could someone tell why isn't this working?

 

<?php
//other php functions
?>
$message = "<HTML>
email body section A
<?php require( dirname( __FILE__ ) . '/../../folder/file.php' ); ?>//this is my problem - it's SHOWING BLANK here (the path is correct)
email body section B
</HTML>"

Link to comment
https://forums.phpfreaks.com/topic/253142--/#findComment-1297856
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.