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.

HTML being sent in plain text clients

  1. Hopefully I can explain this correctly. I've been trying to setup the notification on my form with HTML, which works fine for clients that see the HTML.
    When I check the message with an email client that doesn't support HTML - instead of plain text I see all the markup along with the text.

    I've tried multiple things - disabling auto formatting and putting all in one long string, removing the html and using just text with auto formatting turned on, etc.

    I can't seem to find the right combination on this. How do I set this so that email clients that can support HTML will see the HTML, and email clients that need plain text will see the text without the html in it?

    Thanks,
    Barbara

    Posted 13 years ago on Monday January 10, 2011 | Permalink
  2. The emails are sent as HTML, not plain text. This isn't currently configurable without changing the plugin code itself which we don't recommend. We are considering adding an option to send the email as text only, however statistically the vast majority of email clients in use today have HTML capability.

    Posted 13 years ago on Monday January 10, 2011 | Permalink
  3. Hi Carl,
    Thanks - I figured a work around for this that gets me through the problems.

    Best,
    Barbara

    Posted 13 years ago on Monday January 10, 2011 | Permalink
  4. Barbara,
    What was the work-around.
    We're confronting the same issue.
    Thanks!
    Tony

    Posted 13 years ago on Thursday April 21, 2011 | Permalink
  5. I second the vote for plain text support. My studio management software requires plain text emails for automatic submission. Having the option available can't hurt anyone, I would personally appreciate it.

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  6. We have a 5 person customer contact center. They handle all inbound emails and calls for the customer support. They use a e-mail routing/mangement application called Kana. It takes all inbound emails and captures data on each email while routing them to the correct folks. It butchers html emails.

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  7. It is a feature we plan on adding. Until then it can only be accomplished via a core code change that will impact ALL forms on the site you make the code change too.

    Here is what you would have to change:

    You would edit common.php in the gravityforms plugin folder. Search for the wp_mail function call. Just above the line that calls wp_mail is a line that sets the Content-type for the email being sent to text/html. You need to change it to text/plain.

    Posted 13 years ago on Thursday April 28, 2011 | Permalink
  8. sorry for the double

    Posted 12 years ago on Tuesday May 10, 2011 | Permalink
  9. Hi Carl,

    I'd like to my vote to this feature request, with the following addendum:

    I would prefer to see emails sent as multipart/alternative, with a text and an html copy of the email. This is really the best way to handle sending HTML emails, since it allows the recipient to view whichever version of the email he prefers / whichever version of the email his client can render.

    This is also becoming more important with "DropBoxes", email addresses that process incoming messages and do something else with them. In many cases, these DropBoxes only work correctly with text emails. Sending emails as multipart/alternative would allow your customers to create rich HTML messages for correspondents who choose to view them while creating an alternate text version of each message for clients that can only handle text emails.

    Multipart/alternative example at php.net.

    Posted 12 years ago on Tuesday May 10, 2011 | Permalink
  10. Craig
    Member

    I need to send plain text email for our management system. How can I just sent plain text?

    Posted 11 years ago on Thursday September 20, 2012 | Permalink
  11. You can control the email notification format buy using the gform_notification_format filter:

    http://www.gravityhelp.com/documentation/page/Gform_notification_format

    Posted 11 years ago on Saturday September 22, 2012 | Permalink