Gurbirs
asked on
How can i send email to 50,000 customers on one shot?
Hi
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
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
i would suggest you to create a console application. that would execute a batch sending of email.
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.
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.
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.
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.
ASKER
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.