What is the proper way of inserting an html file template in a php email
ob_start();
include("example.html");
$html = ob_get_clean();
or
file_get_contents();
im not sure how to use this
What is the proper way of inserting an html file template in a php email
ob_start();
include("example.html");
$html = ob_get_clean();
or
file_get_contents();
im not sure how to use this
Highly depends on what example.html is doing. If it is just plain html both ways work the same.
With include you have variables you define earlier available in example.html.