SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast tommy168's Avatar
    Join Date
    Feb 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    send_email( ) flood

    Hay guys

    so i was debugging my mailing list script

    some mistakes come up in the foreach loop with send_email( ) function in it

    As a result, it keeps sending emails like crazy (well over 100 emails within half an hour)

    Now when i want to test the script again, no emails can be sent

    So i would assume the web server is down because of the huge email flood

    But how long would it last? And what can I do to get around it, so the pause in between the email floods could be minimized?

    Thanks

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    There are a lot of web hosts who limit the number of emails that can be sent through your account in a given period. You'd need to check the info they provide to find out what limit they have.

    It is also possible that they have a second higher limit that they will increase it to if you specifically ask for it.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    669
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will last 3 days, 6 hours, 27 minutes and 14 seconds. A piece of string is also 15 metres long

    The only thing you can do to get around it is to send email through another email server using smtp or something.
    I'll do anything to avoid working on my own code

    Are you using: if (isset($_POST['submit'])) ?
    IE has a bug and does not always send the value.

  4. #4
    SitePoint Enthusiast tommy168's Avatar
    Join Date
    Feb 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will last 3 days, 6 hours, 27 minutes and 14 seconds.
    wow that's one inspiring news

    I have googled this problem and it seems like there are some plugins may help solve the problem, like SwiftMailer, etc

    could i solve this problem if i upload these files onto the web server and include them where necessary to manipulate the pausing time?

    Thanks

  5. #5
    SitePoint Guru
    Join Date
    Aug 2009
    Posts
    669
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tommy168 View Post
    wow that's one inspiring news
    Well you did ask
    I'll do anything to avoid working on my own code

    Are you using: if (isset($_POST['submit'])) ?
    IE has a bug and does not always send the value.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •