I have got it working using;
$header = "To: ben@graves35.fsnet.co.uk\n";
$header .= "CC:\n";
$header .= "Subject: Test email\n";
$header .= "From: webmaster@wrathofthebarclay.co.uk\n\n";
$Body = "This is a test email body";
$fp = popen("/usr/sbin/sendmail -t -f", "w");
fputs($fp, $header);
fputs($fp, $Body);
fputs($fp, "\n");
pclose($fp);
What do the switches mean after /usr/sbin/sendmail?
and the "w" in the popen()?
Also is the "X-Mailer: $SITE_HEADER" important as it doesn't seem to do anything?
Thanx for your help anyway,
ben_g