<?
$recipient = "";
$contents = file("emails.txt");
foreach ($contents as $value) {
$recipient .= $value;
}
$subject = "Subject of the message";
/* message */
$message .= "The following email includes a formatted ASCII table\n";
$message .= "Day \t\tMonth \t\tYear\n";
$message .= "3rd \t\tAug \t\t1970\n";
$message .= "17rd\t\tAug \t\t1973\n";
/* you can add a stock signature */
$message .= "--\r\n"; //Signature delimiter
$message .= "My signature";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers .= "From: Od mene <my@email.net>\n";
$headers .= "X-Sender: <my@sender.net>\n";
$headers .= "X-Mailer: Microsoft Outlook Express 6.0\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <me@emailt.com>\n"; // Return path for errors
/* If you want to send html mail, uncomment the following line */
// $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
/* and now mail it */
mail($recipient, $subject, $message, $headers);
?>
Bookmarks