Untitled
Anonymous
php
03/14/2022 11:44 AM
652 B
22
Indexable
<?php $from = "Willy Wonka <[email protected]>"; foreach(file('list.txt') as $line) { list($email, $name) = explode("\t", $line); list($firstname) = explode(' ', $name); $subject = "Hi $firstname! The chocolate is all yours."; $body = "Hi $firstname — Those other kids are awful. You deserve it all. Come and get it. -- Willy Wonka — [email protected] — http://wonka.com "; mail($email, $subject, $body, $from); print "$email sent\n"; } ?>
Editor is loading...