SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making a php mail function send to everyone in database but 1 person every minute

    I have a database of users with their emails but as my hosting provider doesn't allow mass emails I was wondering if there is a way so that I can send the same email to everyone in the database but 1 person ever 1 minute. So that It sends to person '1' and waits one minute then sends to person '2' and waits one minutes and keeps doing that till it has sent to everyone. I have php and html knowledge and also a bit of javascript.

    I think this can be done with cron jobs but how exactly? I don't use cron jobs much so I need detailed help.


    Thanks

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,084
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    How many people will you be sending to? It might be worth it looking at a paid service like Mailchimp or Amazon SES.

    Building a mail service for a lot of emails is one of the hardest things to do and 9 of 10 times getting a paid service is cheaper in the long run because you don't have to worry about all the maintenance stuff like blacklisting etc.
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  3. #3
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ScallioXTX View Post
    How many people will you be sending to? It might be worth it looking at a paid service like Mailchimp or Amazon SES.

    Building a mail service for a lot of emails is one of the hardest things to do and 9 of 10 times getting a paid service is cheaper in the long run because you don't have to worry about all the maintenance stuff like blacklisting etc.

    Can I use google apps? And send through SMTP from 3rd party software?

  4. #4
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,084
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by shivampaw View Post
    Can I use google apps? And send through SMTP from 3rd party software?
    Yes you can do that as well, but the same limitation holds. You can probably go faster than 1 every minute, but google apps also doesn't like it if you blast a lot of emails at it. No SMTP server does. Which is why I suggested the alternatives
    Rémon - Hosting Advisor

    SitePoint forums will switch to Discourse soon! Make sure you're ready for it!

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  5. #5
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ScallioXTX View Post
    Yes you can do that as well, but the same limitation holds. You can probably go faster than 1 every minute, but google apps also doesn't like it if you blast a lot of emails at it. No SMTP server does. Which is why I suggested the alternatives

    What I did is echoed out all the usernames and emails from my table to a file then used MaxBulk Mailer and connected to my google apps account. Then I loaded the emails from web page and boom they all popped up which then allowed me to create a nice message and send to all users.

    This is what the email looked like.
    842b612673d5acc27abc985c840da9a6.png


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •