Can anybody tell me what I'm doing wrong?
Template.inc is a newsletter file with a whole bunch of HTML coding and PHP variables that are read from a MySQL database. Echoing out $mailbody produces the exact results that I want. The mail feature doesn't work for whatever reason.
$mailbody='';
ob_start();
include("./template.inc");
$mailbody=ob_get_contents();
ob_end_clean();
mail(
"user@blah_blah.com",
"Test Template",
"$mailbody",
"From: sender@junk_co.com\n"."Content-Type: text/html; charset=ISO-8859-1\n",
"-f sender@junk_co.com");
NOTE: This is NOT spam. This is a monthly newsletter that a user has to subscribe to before he/she can recieve it.
Techrat