Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<h2>Smoking Skull's Mass Mailer</h2> <br>";
- set_time_limit(0);
- $file = "destinatari.txt"; // File text con gli indirizzi email a cui inviare il messaggio
- $subject = "NESSUN OGGETTO"; // Titolo dell'email
- $from = "anonymous@nasa.gov"; // La vostra email falsa
- $body = "www.sskull.wordpress.com"; // Testo del messaggio da inviare
- if(file_exists($file)) {
- $list = file_get_contents($file);
- }
- else {
- die("Il file <b>$file</b> non esiste?");
- }
- $ar = split("\n", $list);
- foreach($ar as $target) {
- $mail = mail($target, $subject, $body, 'From: '.$from);
- if($mail) {
- echo "La mail รจ stata inviata con successo a <b>$target</b>
- ";
- }
- else {
- die("Impossibile inviare l'email: mail server inesistente o limite email raggiunto!");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement