CFMail Timing Out in CFLoop

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFMail Timing Out in CFLoop

    I am using a hosted server and have no control over their settings. They say
    the Timeout for CFMail is set to 20 seconds.

    The problem I'm running into is that I have a CFLoop that triggers one
    <CFMail></cfmail)> tag per loop (one email per loop). based upon a bunch of
    selected Name records. What is happening is that the process faills after 20
    seconde wit h a CFMAil timeout message. At that point, it's sent about 25
    emails. So, the timeout is not cause by one instance of CFMail, it seems to
    start the clock the first time it hits the CFMail tag, then doesn't reset for
    each iteration of the tag.

    Is there some way to make sure the timeout resets each time it hits the start
    of a new tag? I tried setting Timeout="900", but it had no effect.

    Thanks.

    mpalsf Guest

  2. Similar Questions and Discussions

    1. CFLOOP and CFMAIL
      Is there anyway to have cfloop delay 5 seconds inbetween each time it loops. I am trying to send out an large email but my web host says I have to...
    2. Timing Out during CFMail transaction
      I'm using a hosted server and manage the database for my kid's high school. Sometimes when I send out email announcements, the server times out. ...
    3. <cfmail></cfmail> in a script
      I am wondering if I can put <cfmail> tags and code within a javascript script. will the browser recognize it, and perform the instructions? ...
    4. cfmail - Attribute validation error for tag CFMAIL.
      I'm getting the error ' Attribute validation error for tag CFMAIL.' on the code below. All its doing is outputting a text string to the TO: field. ...
    5. Timing
      Hello, My code needs to calculate a value every half second for 40 seconds. I was considering using select as a fixed time value. Is it...
  3. #2

    Default Re: CFMail Timing Out in CFLoop

    There is a timeout attribute of the cfmail tag. It should override the server
    setting.

    timeout
    Optional. The number of seconds to wait before timing out the connection to
    the SMTP server.

    <cfmail to = "#form.mailto#" from = "#form.mailFrom#" subject =
    "#form.subject#" timeout="20">


    Ken

    The ScareCrow Guest

  4. #3

    Default Re: CFMail Timing Out in CFLoop

    Thanks. I tried using the cfmail timeout, but it did not override the server
    settings. They did finally say I could use CFSetting/Request Timeout, which
    did override the server setting: <cfsetting RequestTimeout = "number
    InSeconds"">

    mpalsf Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139