Code:
<?php
// All of the email addresses the message needs to be sent to
$addresses = Array('me@domain.com','you@domain.com','test@example.com','email@website.com');
//the subject of the message
$subject = 'Test Email';
//The body of the message
$msg = <<<HERE
This is the test email message. Change me to what you want the email to say
HERE;
foreach ($addresses as $to) {
mail($to, $subject, $msg, 'From: PHP Script <noreply@domain.com>');
}
?>
Hope this helps.
Bookmarks