PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Notification Bug

  1. digitz
    Member

    I've found a bug in the plugin:

    When your form element has a space between it, in other words when your form element consists of two words, when you insert the element in the email subject line, the email is not sent to the desired email address.
    I tested it with non-english words. For example test this:
    {خدمات درخواستی: 13}
    The space between خدمات and درخوساتی prevents the form being emailed.
    It took me around 4 hours to figure it out. I completely redesigned a long form to figure out why my emails weren't coming through.

    Posted 14 years ago on Friday November 26, 2010 | Permalink
  2. digitz
    Member

    Update: the problem exists when you insert an element where the element value is more than one word.

    Posted 14 years ago on Friday November 26, 2010 | Permalink
  3. digitz
    Member

    Update: Voila!
    I found the problem!!
    The problem occurs when the subject line is more than a certain number of words.
    To be more specific the problem occurs when their is a combination of words and form element values exceeding a certain number of subject line characters, or if the form element value itself is more than a certain amount of characters.

    It had nothing to do with the space between the element words etc..

    What should I do to fix this?
    How can I increase the number of characters/words allowable for the subject field of email notifications?

    Posted 14 years ago on Friday November 26, 2010 | Permalink
  4. We'll look into this. It may not be a Gravity Forms limitation, it may be a limitation on the wp_mail function used to send the notification email.

    Posted 14 years ago on Friday November 26, 2010 | Permalink
  5. digitz
    Member

    I'm the Farsi developer of CF7. CF7 doesn't have such a problem. It too uses the wp_mail function.
    Thanks for your concern

    Posted 14 years ago on Friday November 26, 2010 | Permalink
  6. Do me a favor and use the import/export feature to export that form to XML and email it to me at carl@rocketgenius.com so we can test with your form setup.

    Posted 14 years ago on Friday November 26, 2010 | Permalink
  7. digitz
    Member

    A blank CSV is generated (0 kb in size).
    I've contacted the CF7 developer to see if he has run into this problem before and will get back to you once I've got an answer.

    Posted 14 years ago on Saturday November 27, 2010 | Permalink
  8. digitz
    Member

    This was the answer I received:

    I'm not exactly sure about your case, but actually there is a restriction of header line length.

    http://www.ietf.org/rfc/rfc2822.txt
    2.2.3. Long Header Fields

    Each header field is logically a single line of characters comprising
    the field name, the colon, and the field body. For convenience
    however, and to deal with the 998/78 character limitations per line,
    the field body portion of a header field can be split into a multiple
    line representation; this is called "folding".

    I don't have any experience facing those kind of problems because I always use WordPress standard wp_mail() function, which correctly manages headers for me.

    Posted 14 years ago on Saturday November 27, 2010 | Permalink
  9. digitz
    Member

    Carl,

    I sent the form XML to your email address. Please confirm.

    Posted 14 years ago on Sunday November 28, 2010 | Permalink
  10. I did receive the XML and will look into it. Gravity Forms uses the wp_mail() function just like cforms. But this still sounds like an issue of hitting the limitations on the header length rather than an issue with the plugin itself. Although if we know what the limitation is we could trim the length.

    Can you tell me what an example of a long Subject line you have tried using looks like?

    Posted 14 years ago on Monday November 29, 2010 | Permalink
  11. digitz
    Member

    درخواست خدمات ترجمه فارسی به انگلیسی
    درخواست خدمات is just a text written at the beginning of the subject line
    ترجمه فارسی به انگلیسی comes from a variable I inserted in the notification.
    It's actually a drop down field value a user selects.

    Posted 14 years ago on Thursday December 2, 2010 | Permalink
  12. digitz
    Member

    I used the same on CF7 without any problems.

    Posted 14 years ago on Thursday December 2, 2010 | Permalink
  13. digitz
    Member

    So very eagerly waiting for Gravity Forms with RTL support to come out.. Hmmm.. I wonder when..

    Posted 14 years ago on Sunday December 12, 2010 | Permalink