How can i send email  to 50,000 customers on one shot?

Posted on 2008-11-03
Last Modified: 2013-11-15

I want to send email to 50,000 members in one shots by using PHP.
Could you please let me know how can this possible?

Is there any other alternative then please suggest.

Thank You

Question by:Gurbirs
    LVL 2

    Expert Comment

    i would suggest you to create a console application. that would execute a batch sending of email.
    LVL 26

    Expert Comment

    Like kerwinsiy said, do it from the console. PHP is not designed for such a task and will most likely time-out before all the email is sent.

    I'd either do it via a shell script or create a distribution list on whatever email server you're using and use php to send to that 1 address and let the smtp server do all the work translating that into the 50 recipients and sending.
    LVL 20

    Expert Comment

    make sure :

    1. you send it to either each person separately or you use BCC not TO otherwise everyone will see everyones email address and this really annoys people.

    2. make sure you have permission to mail these people.  Some countries now use 'opt in' and the person has to agree to receive the emails.  

    If you are sure you want to use php (why ?  Its like using a motor cycle to get from your kitchen to your bedroom in the same house)
    then you will need to do it in multiple runs.  Have a list of email addresses and call the php file.  Run on a certain number of addresses maybe 30.  Email those people and then call the same page with a paramter like 'count=30' and then start processing the list at item 31.

    Author Comment

    PHP is not compulsory, If you will suggest some better way then I will try to do in that way.
    The main problem is with mail server. Mail server can not allow to send email to 50,000 persons in one shots.

    But I want to send email to all members at same time.

    So please suggest best solution what I need to do?

    LVL 20

    Accepted Solution

    Email servers often do not let you send to that many people to stop spam.

    First get the info on how many you can send.  
    Is there a limit on the number per email ?
    Is there a limit per hour ?  per day ?

    Then batch your emails to fit into this.

    If you are restricted too much by the mail server then sign up with a different mail server or talk to a mail shot company that will email this out for you to your list (at a cost).

    Oh and please make sure all these people want your email.  The restrictions on emails have been put in for a reason.  lets stop SPAM.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    This video demonstrates basic masking and how to edit the mask to reveal the desired image.
    Video by: Tony
    This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now