mailto: maxlimit?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

mailto: maxlimit?

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
Post Reply