what exactly are you looking for, please elaborate. sendmail / mail (check PHP.net) function can be used to achieve the desired results. Are you looking for a manual email option (form for you where you type in email id and it picks up text from different templates or you want a auto-email where all users (perhaps stored in database) are sent emails periodically and all you do is modify the text file that forms the body of the email. Need more info. Cheers GS
to people in the list ... the list is in the text file? separate each email by a new line in the text file... <?php $emails = "path_to_list.txt"; $list = explode("\n",$emails); foreach($list as $to){ $message = "insert message here...use \n for a new line"; if(!mail($to,"Subject",$message,"FROM: your@email.com")){ echo "Message could not be sent to ".$to."<br>"; } } ?> PHP:
EMails may end up in junk folder due to the fact that your domain name (or IP address range) is not in recipients good books. It has nothing to do with the code. Thx GS