#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Sacramento
    Posts
    50
    Rep Power
    15
    Hello,

    I have a db with a list of approx. 300 users. I would like create a script to send them email notices, ie: create one email and send to the list. Is this feasible in PHP using the mail( ) function in a loop? Any suggestions on mass mailing your users using php?

    Thank you very much!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Washington, USA
    Posts
    52
    Rep Power
    15
    sendmail (UNIX) is used by the php function mail() and very capable of handling 300 emails in a loop with very little resources used ... now if you start talking thousands of emails being sent in a loop ... probably better to switch to SMTP or some other method ... or batch mailing them



    ------------------
    <UL TYPE=SQUARE>
    <LI> TD Scripts
    <LI> Script School
    <LI>php-scripts
    </UL>
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    London/UK
    Posts
    91
    Rep Power
    15
    Yeah, I'd go with the batching too, maybe sleep() for a second after n emails sent, that way the server gets time to do other stuff

    ------------------
    http://back-end.org

Similar Threads

  1. Help!!! problem with apache james email server.....
    By psyphix in forum Mail Server Help
    Replies: 12
    Last Post: July 24th, 2009, 12:43 AM
  2. sending email + multiple attachments using php
    By gbow in forum PHP Development
    Replies: 6
    Last Post: February 13th, 2004, 10:31 AM
  3. Free email hosting?
    By SilentRage in forum Mail Server Help
    Replies: 6
    Last Post: January 1st, 2004, 05:22 PM
  4. checkbox results to email question
    By ed shaw in forum PHP Development
    Replies: 14
    Last Post: December 28th, 2003, 11:30 PM
  5. Stupid performance question
    By avrfreak in forum PostgreSQL Help
    Replies: 3
    Last Post: December 16th, 2003, 03:44 AM

IMN logo majestic logo threadwatch logo seochat tools logo