Hi,
This is the code i use to send e-mail, youll notice where everything goes.
--- sendmail.php ---
<?
// Load the data parsing functions
$extdata = "external_config.php";
require($extdata);
// Build The Message Body
$recipient = $maildata[fullname]." <".$maildata[emailaddr].">";
$subject = $maildata[subject];
$message .= $maildata[HEADER]\n\n;
$message .= $maildata[MESSAGE]\n\n";
// Server Signature
$message .= "--------------------------------------------------";
$message .= "SMTP: smtp.emcb.co.uk|exposure.org.uk Port25/25";
$message .= "--------------------------------------------------\n";
// Mail Headers
$headers .= "From: ".$maildata[fromname]." <".$maildata[fromaddr]"\n>;
$headers .= "X-Sender:"." <".$maildata[fromaddr]">\n";
$headers .= "X-Mailer: SMTP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <emcb_exposure@hotmail.com>\n";
// Do You Want To Send HTML Mail?
if ($maildata[format] == "html") {
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
}
// Set any additional headers e.g. cc, bc etc...
$headers .= "Cc: $maildata[cc]\n";
$headers .= "Bcc: $maildata[bcc]\n";
//Now Mail It!
mail($recipient, $subject, $message, $headers);
?>
--- sendmail.php ---
Elfyn