1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

max email quota

Discussion in 'PHP' started by UCDaZ, Feb 8, 2009.

  1. #1
    My hosting service (dreamhost) only allows me to send 100 max emails per hour.
    My web app allows the user to send invites to join our network.
    What if a user sends invites 100+ of his friends, what do you recommend I do?
     
    UCDaZ, Feb 8, 2009 IP
  2. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #2
    You could do this:

    - When a users sends invites store them in a database (one row per invite)
    - Set up a cron job each hour that sends the first 100 emails in the queue

    So if someone send 250 invites for example, it takes 3 cron jobs to send them (=3 hours is okay). If you don't know how I can help :)

    Of course you will have a problem if your web app gets really popular and people send >100 invites an hour. But when you are that succesfull I think you're ready for dedicated hosting ;)
     
    SedNaX, Feb 9, 2009 IP