Professional Web Applications Themes

CFMail Timing Out in CFLoop - Coldfusion - Advanced Techniques

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 ...

  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. #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

  3. #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

Similar Threads

  1. CFLOOP and CFMAIL
    By bweno in forum Macromedia ColdFusion
    Replies: 3
    Last Post: June 21st, 11:05 PM
  2. Timing Out during CFMail transaction
    By mpalsf in forum Macromedia ColdFusion
    Replies: 1
    Last Post: April 28th, 03:44 PM
  3. <cfmail></cfmail> in a script
    By Greeniegirl in forum Macromedia ColdFusion
    Replies: 1
    Last Post: March 30th, 06:23 PM
  4. cfmail - Attribute validation error for tag CFMAIL.
    By CF_Hack in forum Coldfusion - Getting Started
    Replies: 1
    Last Post: March 11th, 05:45 AM
  5. Timing
    By Richard Harris in forum UNIX Programming
    Replies: 1
    Last Post: June 24th, 03:10 AM

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
  •  

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