Whether you "send them once" or "one by one" doesn't matter. If you have a quota, you're still sending out 100 emails, regardless. You can try to Cc: or Bcc: the addresses as discussed on the manual page for mail(). As for your second question, you can either modify your php.ini to use that SMTP server or use a special mail class. There are some available at www.phpclasses.org. ---John Holmes... ----- Original Message ----- From: "Ahmed" <ahmed_abdelaliem@hotmail.com> To: <php-db@lists.php.net> Sent: Monday, April 07, 2003 10:01 AM Subject: serious mail problem hi i made a simple script to send e-mail to my mailing list it reads the e-mails from a text file and send it to them the problem that i want to send them once, not one by one which takes a lot of time cause i have a limited quota per day here is the script <?php $subject="subject"; $sendmessage="hi"; $from=mymail@mysite.com; $fp = fopen("mails.txt", "r"); if (!$fp) { echo "<p><strong>can't Read emails." ."Please try again later.</strong></p></body></html>"; exit; } while (!feof($fp)) { $mail= fgets($fp, 200); mail($mail,$subject,$sendmessage,"From: $from"); echo $mail."<br>"; } fclose($fp); ?> can anyone help and can i use a smtp server like mail.gawab.com instead? and if yes please tell me how to modify the script to use that smtp server, waiting for a reply thanks for your time -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php