Page 1 of 1

mailto: maxlimit?

Posted: Mon Apr 25, 2005 5:15 pm
by wmasterj
Ok i have a problem, i've made this app with lots of contacts. And I have a function with lots of email adresses. Now - when i try to email all of them it doesn't work...its about 160-180 email's in one push. And i have checked so none of the adresses are corrupt, and it is possible to mail to all if i do it sections. But is there a way to send email to 150+ adresses with the "mailto:"?

Thx for your help

Posted: Mon Apr 25, 2005 6:36 pm
by Chris Corbyn
I wouldn't advise using mailto: I'd use PHP. BUT, if you are going to use mailto: then that many email recipeints can cause probs since some browsers limit you to 256 chars in the mailto string (so I'm told).

mailto: isn't intended for this sort of mass-mailing.

Posted: Thu Apr 28, 2005 10:06 am
by m3mn0n
Well first, the mailto: link simply points to an e-mail client. So it could be Outlook, Gmail, Hotmail, Thunderbird, and etc, so the e-mail address limit is totally based upon your browser, the program that launches and then the e-mail service provider that program connects to.

If your looping the mail() function it will take a while for larger e-mail lists because each instance of it is a connection to the mail server.

Look into sending the e-mails via sockets, so there is just one connection. Doing that will most likely prevent any MAX_EXECUTION_TIME errors you get with looping mail(). Or if you would like to still use mail(), simply use ini_set() to boost up the default MAX_EXECUTION_TIME limit for the duration of that script.