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.

Spaces in Notifications

  1. I've got the latest version of Gravity working, however there's one problem I haven't solved. In my e-mail notifications, there's a bit of whitespace before any data shows up. (seen here)

    Here's the code I have in my notification section, if that helps.

    <table cellpadding="4" cellspacing="0">
    <tr><td width="100%" COLSPAN="2"><strong>a form has been submitted on {date_mdy} via {embed_url} [{ip}]</strong></td></tr>
    <tr><td width="10%"><strong>Name:</strong></td>
    <td width="90%">{Name:1}</td></tr>
    <tr><td width="20%"><strong>Email:</strong></td>
    <td width="80%">{Email:3}</td></tr>
    <tr><td width="20%"><strong>Website:</strong></td>
    <td width="80%">{Website:4}</td></tr>
    <tr><td width="20%"><strong>Subject:</strong></td>
    <td width="80%">{Subject:5}</td></tr>
    <tr><td width="20%"><strong>Message:</strong></td>
    <td width="80%">{Message:6}</td></tr>
    </table>
    Posted 13 years ago on Monday May 17, 2010 | Permalink
  2. Goob, I'm curious about this one. What email domain are the notifications being sent to (if it's a public mail service like gmail or yahoo), and, can you post the source of the notification email to pastie or pastebin? I am curious what the source looks like.

    I had someone mention this to me once, but I was unable to recreate it. I think it was her email provider. Or maybe her email client interpreting that email. (What client are you using to view the notifications?)

    Posted 13 years ago on Monday May 17, 2010 | Permalink
  3. It is an issue of html break tags being output on each new line. We will be updating Gravity Forms so that you can turn this off and have 100% control. Right now it's still inserting page breaks. The next version release will address this issue.

    Posted 13 years ago on Monday May 17, 2010 | Permalink
  4. So, to be clear, since the notification is formatted on multiple lines, Gravity Forms is adding [br] tags, and those are rendering above (outside) the table? If you formatted your html notification source all on one line instead of multiple lines, would it avoid that problem in the current version?

    Posted 13 years ago on Monday May 17, 2010 | Permalink
  5. Formatting the HTML all on one line would probably get around the break tags issue.

    The problem is the notifications are designed to allow you to create a notification WITHOUT using HTML while still being able to accept HTML. But to do that it has to add breaks, etc.

    So we are going to have an option to disable auto formatting, if you do that you will have to do all the formatting yourself.

    Posted 13 years ago on Monday May 17, 2010 | Permalink
  6. The screen shot I took was from Mac's mail program, but I logged into my gmail account and the e-mail looked … much different.

    The whitespace wasn't there, but for some reason there was an extra <td><br></td>element inserted between all of my other td elements. Here's a screenshot.

    If I view the source, it's nothing but complex mumbojumbo. I used Firebug to have a better look though and the code is exactly like I pasted in my original OP, but like I said, with the extra tags inserted. Makes no sense to me.

    However, when I put all of the code together on one line like Carl suggested, the whitespace was removed on Mac's mail AND gmail didn't insert the phantom td element. So...thanks! I'll look out for the future update though so that I don't have to have my code all on one line.

    Posted 13 years ago on Friday May 21, 2010 | Permalink
  7. We will be resolving this issue in the next feature release of Gravity Forms. We are aware of the problem and will be implementing changes to the Notifications to better handle custom HTML emails.

    Posted 13 years ago on Friday May 21, 2010 | Permalink
  8. B0NG671
    Member

    "Formatting the HTML all on one line would probably get around the break tags issue."

    This works!

    Posted 13 years ago on Monday May 31, 2010 | Permalink
  9. Steaprok
    Member

    any word on fixing this? my notifications go to a lead program and Im missing tons of leads due to the extra whitespacing and formating on the notification email. I've looked around forum and this has been happening for some time now to lots of different people.

    Posted 13 years ago on Saturday June 12, 2010 | Permalink
  10. For now, format all of your HTML on one line. When you manually add carriage returns, the plugin replaces those with < br/> tags.

    If you've read the previous posts, you'll not that we're aware of this and there will be an option in another release to remedy this, but for now, formatting everything without returns works fine.

    Posted 13 years ago on Sunday June 13, 2010 | Permalink
  11. Steaprok
    Member

    @Kevin Flahaut

    Could you please clarify what you mean by "format all of your HTML on one line"

    I am not adding any HTML formating to the emails..

    Thanks for your assistance.

    Posted 13 years ago on Sunday June 13, 2010 | Permalink
  12. are you using the "all fields" tag for notification or are you manually adding specific fields into the notification message?

    Each time you hit the return key in the message box, the plugin will automatically add a < br/> tag to the output. If you don't want any tags to automatically be added, then just keep typing all one one line and let the markup wrap in the window without manually hitting the return key.

    If you'd like, you can send an admin login to your site via our contact form, and we'll be happy to take a look at it for you.

    Posted 13 years ago on Sunday June 13, 2010 | Permalink
  13. Steaprok
    Member

    @Kevin Flahaut I am using the "all fields" tag not manually adding specific fields into message.

    Posted 13 years ago on Sunday June 13, 2010 | Permalink
  14. Okay, gotcha. the "all fields" option is the only one that's pre-formatted in a table with pre-built styles, etc.

    If you're trying to send just the basic information, you should manually add each field to the message by using the selector above the message field.

    screenshot

    As mentioned above, if you use a return, each line will automatically be formatted with a < br/> tag to retain the basic formatting in the email.

    Make sense?

    Posted 13 years ago on Sunday June 13, 2010 | Permalink