mail function
Posted: Tue May 28, 2002 6:13 pm
Hi all;
I use following code in my web side
However in this code, sent mails are added with an unwanted header.
Is there any way to send an email without any header?? Or only information that I provide.
Thanx all...
I use following code in my web side
Code: Select all
$to_email = "tomail@mail.com";
$to_name = "Dear Sir";
$from_name = "My Name";
$from_email = "mymail@mail.com";
$subject = $news_ex; // is a variable that has been posted
$message = $news; // is a variable that has been posted
$to = ""$to_name" <$to_email>";
$from = ""$from_name" <$from_email>";
$to = str_replace("\''", "'", $to);
$from = str_replace("\''", "'", $from);
$subject = str_replace("\''", "'", $subject);
$message = str_replace("\''", "'", $message);
mail($to, $subject, $message, "From: $from\nX-Mailer: System33r");However in this code, sent mails are added with an unwanted header.
Is there any way to send an email without any header?? Or only information that I provide.
Thanx all...