Call a webpage recursively to send multiple emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #16
    Do you see what I'm doing there?

    I'm calling a JavaScript function every second which submits the page to the server if a counter (stored in a HiddenField) is greater than 0.

    My server side code then subtracts one from a "counter" value, stores it in the HiddenField and returns to the browser....

    Then the process starts over again.

    There's no reason why you couldn't call your emailing functionality and store the number of emails still needing to be sent in the HiddenField...w hich the JavaScript method could check.

    You could create a progress bar type thing using this concept.

    It would be even smoother if you were to use Ajax ;) ;)

    -Frinny

    Comment

    • john garvey
      New Member
      • Jan 2011
      • 50

      #17
      Hi Frinny

      Its been good coversing with you, but, over the weekend I was sending 400 mails and less than halfway through, the server rejected one of the addresses. My MS Access system gave me the error message and I was able to track the offending address and resend the balance. This gave rise to me thinking of handling exceptions, errors and large arrays of mail data. I said at the outset of this thread that what I wanted to do may not be achievable, I am now thinking that that may be the case and I shall use the Access setup for eMailing and the website for everything else.

      Once again thanks for your input.

      John C Garvey

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #18
        John, I'm sorry that you were unable to solve your problem.

        If you're emailing that much you should consider using an emailing list...If you're not using your own SMTP server, you're probably going to run into problems because your task will be considered as "spamming" and will likely be shut down.

        -Frinny

        Comment

        Working...