bestsiteeditor has asked for the wisdom of the Perl Monks concerning the following question:

My client wants me to build him a newsletter applcation.

My host server has a "pragma" - max 60 emails per 5 minutes could be send via sendmail.

How to override this limit problem?

Obviously my client will have more than 60 mails to send and I could not make him wait and click every 5 minutes.

I use this module Mail::Sendmail;

I already talked with the host tech support, even offered additional payment, but they say this is a globally set parameter and could not be changed for individual clients.

Replies are listed 'Best First'.
Re: Server send mail limits
by Anonymous Monk on Feb 04, 2011 at 09:49 UTC
    How to override this limit problem?

    You pay your host to increase the limit

    Obviously my client will have more than 60 mails to send and I could not make him wait and click every 5 minutes.

    You don't make the human client wait, instead, you schedule a program (cron) to send 60 mails every 5 minutes, until all the emails are sent.

Re: Server send mail limits
by Corion (Patriarch) on Feb 04, 2011 at 09:50 UTC
Re: Server send mail limits
by moritz (Cardinal) on Feb 04, 2011 at 09:53 UTC

    Trying to get around limitations of your hoster is impolite, likely a breach of contract and the best way to make your host terminate your contract.

    Why not just talk to the host, explain your situation and ask what could be done about it?

Re: Server send mail limits
by cjb (Friar) on Feb 04, 2011 at 10:22 UTC

    As others have said, find a better hosting provider, or live by their rules.

    No reason you can't count the number of emails as you send them and then sleep (300) when you get to 50/60 (I'd say 50/55 assuming your client is sending other mail during the same period)

Re: Server send mail limits
by roboticus (Chancellor) on Feb 04, 2011 at 11:00 UTC

    bestsiteeditor:

    You could always get a third-party email relay server, such as Unified EMail. (Note: I have no relationship with them, other than being a customer.)

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: Server send mail limits
by Jenda (Abbot) on Feb 04, 2011 at 13:33 UTC

    Max 60 emails or max 60 recipients?

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Re: Server send mail limits
by hsinclai (Deacon) on Feb 04, 2011 at 18:55 UTC
    You should try a 3rd party provider like http://sailthru.com/ which will simplify your local programming, give you a load more of features around mail sending, and allow you to scale at a cheap cost, rather than battling your SP who is setting limits to protect their own infrastructure.