Amennyiben nem szeretnél feliratkozni, nem kell semmit tenned!
Üdvözlettel, Art-Area";
// ob_start();
// require("../gaussadmin/mailmessage.php"); // page for showing in the email
// $body=ob_get_contents(); ob_end_clean();
# Common Headers
$headers = 'From: '.$fromName.'< '.$fromEmail.' >'.$eol;
$headers .= 'Reply-To: '.$fromName.' < '.$fromEmail.' >'.$eol;
$headers .= 'Return-Path: '.$fromName.' < '.$fromEmail.' >'.$eol; // these two to set reply address
$headers .= "Message-ID: <".time()." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
$headers .= "X-Mailer: PHP v".phpversion().$eol; // These two to help avoid spam-filters
# Boundry for marking the split & Multitype Headers
$mime_boundary=md5(time());
$headers .= 'MIME-Version: 1.0'.$eol;
$headers .= "Content-Type: multipart/related; boundary=\"".$mime_boundary."\"".$eol;
$msg = "";
# Setup for text OR html
$msg .= "Content-Type: multipart/alternative".$eol;
# HTML Version
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/html; charset=iso-8859-2".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
$msg .= $body.$eol.$eol;
# SEND THE EMAIL
//ini_set(sendmail_from,'from@me.com'); // the INI lines are to force the From Address to be used !
ini_set(SMTP,"localhost");
return mail($toEmail, $emailsubject, $msg, $headers);
//ini_restore(sendmail_from);
}
?>