#1
  1. Meatball Surgeon
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2004
    Location
    Elbow deep in code
    Posts
    2,056
    Rep Power
    1321

    CFMAIL: Limit to TO attribute?


    All,

    So i am sending an automated email and i generate a comma seperated list of address (which are stored in a variable) and i just dump that into the TO attribute field.

    I have done this for other automated email systems, but all the addresses were hardwired (but still comma delimited). Now i get the an error saying the value of the TO attribute is invalid. Could it just be the amount of data? i am sending a little more than i have before, maybe i have hit a limit.

    Any ideas would be great.

    Thanks
    Three gigs for the secretaries fair
    Seven gigs for the system source
    Nine gigs for the coders in smoky lairs
    One disk to rule them all, one disk to bind them
    One disk to hold the files, and in the darkness grind'em
    ---------------------------------------------------
    It is by caffeine alone that I set my mind in motion.
    It is by the beans of Java, that my thoughts acquire speed.
    The hand acquire shakes; the shakes become a warning.
    It is by caffeine alone that I set my mind in motion.
  2. #2
  3. Lurker - in your bushes
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    .be
    Posts
    494
    Rep Power
    116
    I have had a similar issue and found out that it was sendmail that had a limit of 100 recipients in the environment we were working in.

    Other than that, I'd check if your string doesn't start with a coma...(?)
    Saintaw

    pending.
  4. #3
  5. Meatball Surgeon
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2004
    Location
    Elbow deep in code
    Posts
    2,056
    Rep Power
    1321
    Thanks for the info; i was able to find the problem (it was being sneaky).

    The field that stores the email adress used to be free form, we recently put controls on it to stop that. One of the old adresses somehow got acarriage return worked into it, and cfmail didn't like that!
    Three gigs for the secretaries fair
    Seven gigs for the system source
    Nine gigs for the coders in smoky lairs
    One disk to rule them all, one disk to bind them
    One disk to hold the files, and in the darkness grind'em
    ---------------------------------------------------
    It is by caffeine alone that I set my mind in motion.
    It is by the beans of Java, that my thoughts acquire speed.
    The hand acquire shakes; the shakes become a warning.
    It is by caffeine alone that I set my mind in motion.
  6. #4
  7. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    Even still I'm sure there is some limit since the value is just a string. Under the hood the limit is probably whatever the maximum length allowed for a Java String class is. Which I assume is probably pretty big (maybe even up to 64,000 characters or something, or more), but probably not unlimited.
  8. #5
  9. Meatball Surgeon
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 2004
    Location
    Elbow deep in code
    Posts
    2,056
    Rep Power
    1321
    I agree, but this email is for an exception report, so the chances of it getting that big are very, very, small
    Three gigs for the secretaries fair
    Seven gigs for the system source
    Nine gigs for the coders in smoky lairs
    One disk to rule them all, one disk to bind them
    One disk to hold the files, and in the darkness grind'em
    ---------------------------------------------------
    It is by caffeine alone that I set my mind in motion.
    It is by the beans of Java, that my thoughts acquire speed.
    The hand acquire shakes; the shakes become a warning.
    It is by caffeine alone that I set my mind in motion.

IMN logo majestic logo threadwatch logo seochat tools logo