Re: Sending mail to many recipients issue.
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 09 Apr 2008 17:51:03 -0400
undbund wrote:
On Apr 10, 4:24 am, "Twayne" <nob...@xxxxxxxxxxxxxxxxxxx> wrote:Hi am using phpmailer to send newsletters about 100. My server has aCheck your ISP policy for daily/monthly limits on e-mails. Assuming
limit of 50. How can i recode the sending part of phpmailer so that
server does not detect this limit and so I will be able to send all
100 newsletters. Can you please point me to some tutorials or
examples.
Thanks.
it's over 100, then break the Send up into 3 different Sends, 1/3 of the
total at a time (to allow for some growth). If necessary, send them over
two or three days to minimize the counts.
If that won't work find an ISP that will let you do what you want. But
be aware that if I get one of them unsolicited, they'll be reported as
spam. More importantly, if this is a legitimate newsletter list with
cofirmed optins, all that, such an ISP will likely be on many block
lists, probably blacklists too so you'll be blocked/not blocked/blocked
... and so on. Unless you pay for a static IP and can get a clean one
not already on any lists.
You can't legally "recode" to get around the ISP's limitations. And if
you do it illegally, you've opened yourself up to theft of services,
something many are starting to prosecute these days.
If you aren't up on these things, have a read here:http://www.mail-abuse.com/enduserinfo.html
Start about 2/3 down the opening page. That's what used to be called
MAPS.
--
Regards,
Twayne
Open Office isn't just for wimps anymore;
OOo is a GREAT MS Office replacementwww.openoffice.org
Hi Guys thanks for your help, I had sent a support ticket to my mail
provider asking them about the limits. They were kind enough to
provide me with that information. So that leaves me with this final
question. If I have the following PHP code:
for($i=0;$i<count($email); $i++)
{
sendMail($i);
sleep(5);
}
To my understanding, this pseudocode sends one email, waits for 5
seconds and send another email.
Am I correct?.
Thanks
Yes, but you're probably going to run into time restrictions. Your host can set the maximum time a script is allowed to run; normally is is around 30 seconds.
Even if the PHP script doesn't time out, your browser will.
A better way to handle it would be to store the info in a database then kick off a batch job to send the mail. You may be able to send all of them within your maximum time (IIRC, sleep() doesn't count against script execution time). Of not, send a few (deleting from the database as you go) and before exiting start a new copy of itself.
This way you can space them every 5 seconds or every 5 minutes, depending on what you want.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Sending mail to many recipients issue.
- From: undbund
- Re: Sending mail to many recipients issue.
- From: Twayne
- Re: Sending mail to many recipients issue.
- From: undbund
- Sending mail to many recipients issue.
- Prev by Date: Re: Double drop down combo box
- Next by Date: Re: php and mySql
- Previous by thread: Re: Sending mail to many recipients issue.
- Next by thread: Re: Sending mail to many recipients issue.
- Index(es):
Relevant Pages
|
Loading