Re: Sending mail to many recipients issue.



undbund wrote:
On Apr 10, 4:24 am, "Twayne" <nob...@xxxxxxxxxxxxxxxxxxx> wrote:
Hi am using phpmailer to send newsletters about 100. My server has a
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.
Check your ISP policy for daily/monthly limits on e-mails. Assuming
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
==================

.



Relevant Pages

  • Re: Getting a list of list permissions for WSS
    ... this on a backup copy of the database so you're not hitting the live DB. ... Now when you run the script and refresh the SPS Event List which this ... my departmental Event Lists roll-up flawlessly to a single Portal list. ...
    (microsoft.public.sharepoint.portalserver)
  • Newbie Question
    ... I would like a script that lists all the tables within a database, ... Jeremy Byrski ...
    (microsoft.public.sqlserver.programming)
  • [Full-Disclosure] Re: [0day] ExploitLabs.com CGI Script Irony (was: Vote Today)
    ... It is also my belief that Donnie Werner's ... For the benefit of the lists, ... Filtering Flaws in ExploitLabs.com CGI Script ... Donnie's script insecurely sanitizes the "host" URI parameter. ...
    (Full-Disclosure)
  • Re: cp/mv with verify step?
    ... script), so a quick'n'dirty check would be to see if the last argument ... is a directory (in which case you append each source filename in turn) ... for every "target" file. ... Generating the lists *could* be scripted, ...
    (comp.os.linux.misc)
  • Re: checking dns records from named.conf
    ... > I have already modified your script to read named.conf file and parse it ... generated lists to tell me which of the 20 nameservers I'm responsible ... to detect sub-domains of zones we also hold. ... Writing something to keep a single DNS platform neat and tidy is on my ...
    (freebsd-isp)

Loading