I have hosted my site . i want to send mails to a group of 100 people who are currently my site's subscribers. if we use php mail(), will it create any kind of server over load or any problem with server??? i have virtual dedicated server, hosted with jumpline.com (20GB space and 200GB traffic)... Please help. Regards, Chandan
The mail() function isn't really proc-consuming, as most of the time it uses is for connecting to the smtp server and sending the data of the mail. So you can safely make 100 mail(), it may take a little time to complete but it won't be overloading the server.
imchandan hi buddy where u from ? IM also chandan Freud2002 what if i make 100000 mails ? then also it works fine ?
I'd expect PHP to run out of memory somewhere though that - at which point you'd just get a fatal error, however some of them would be sent.
yeah once i faced this error problem when i tried to insert 5000 rows any solution for this problem ?
I did have a large data entry problem once - inserting around 10,000 entries (plus) per day. The only way to get past the memory errors is to continuously optimise your code. For example - got two loops dealing with the data array? Merge them into one if you can.
If you have to send 100000 mails, I'd suggest to install your own SMTP server and send them from your computer (this way you'll be able to raise the amount of memory a php script can use, and also the timeout before it dies). But then, don't forget to add a SPF record to your DNS entries, or you can be almost certain your mails will end up in the trash folder.