Re: serious mail problem

From: Date: Mon, 07 Apr 2003 14:11:44 +0000
Subject: Re: serious mail problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-26898@lists.php.net to get a copy of this message
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: [PHP-DB] 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

« previous php.db (#26898) next »