<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Notification HTML breaks sometimes</title>
		<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes</link>
		<description>Gravity Support Forums Topic: Notification HTML breaks sometimes</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 14:59:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/notification-html-breaks-sometimes" rel="self" type="application/rss+xml" />

		<item>
			<title>Vayu on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-64842</link>
			<pubDate>Thu, 05 Jul 2012 08:20:31 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">64842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris.&#60;br /&#62;
I know this is a bit late, but I had not seen that you had replied to my last message from October 5th, because I never got an email about it and I simply forgot to check up on it.&#60;/p&#62;
&#60;p&#62;I have now returned to this thread, as I came across the same issue in another project I am working on.&#60;/p&#62;
&#60;p&#62;I have now tested it and I can tell you that your advice works great!  Brilliant, thanks!&#60;br /&#62;
Vayu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-37214</link>
			<pubDate>Thu, 06 Oct 2011 10:02:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">37214@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds like you have some of it resolved.  The exclamation mark thing has been reported a few times, but a long time ago.  &#60;/p&#62;
&#60;p&#62;Let's try something.  How about inserting a few &#34;\n&#34; into your HTML so it's not all just one long line.   In your &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/notification-html-breaks-sometimes#post-36867&#34; rel=&#34;nofollow&#34;&#62;comment above&#60;/a&#62;,  after each &#34;&#38;lt; / tr &#38;gt;&#34; try adding a &#34;\n&#34; so it looks like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;\n&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The problem is you have all your HTML single quoted, and &#34;\n&#34; won't work there, it has to be in double quoted to be interpreted.  Try this version &#60;a href=&#34;http://pastebin.com/MPTMVcP0&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/MPTMVcP0&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I added an opening &#38;lt;?php tag there so I could see the syntax.  You can remove that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-37091</link>
			<pubDate>Wed, 05 Oct 2011 07:01:26 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">37091@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris.&#60;/p&#62;
&#60;p&#62;Thank you for helping out! :-)&#60;/p&#62;
&#60;p&#62;I had no way of seeing the mail as HTML.  But I placed the whole email inside htmlspecialchars and was able to see html generated that way.  I found that there was table row ending missing one place.&#60;br /&#62;
I then added some htmlspecialchars to the content.  It seems as if this fixed the problem.&#60;br /&#62;
I still had some errors in the HTML though, but it didn't seem to show in the email.&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/MdDCqJDh&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/MdDCqJDh&#60;/a&#62;&#60;br /&#62;
See line 10, 31, 33, and 60.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-36884</link>
			<pubDate>Mon, 03 Oct 2011 11:12:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36884@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you post the source of an email notification with broken HTML?  Maybe we can see where it's getting messed up.  Use pastie.org or pastebin.com for long source code.  Thanks.&#60;/p&#62;
&#60;p&#62;You might have to use &#60;a href=&#34;http://php.net/manual/en/function.htmlspecialchars.php&#34; rel=&#34;nofollow&#34;&#62;htmlspecialchars&#60;/a&#62; to escape the submitted text so it does not foul your layout.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-36867</link>
			<pubDate>Mon, 03 Oct 2011 03:23:51 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">36867@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, thanks for your replies. :-)&#60;/p&#62;
&#60;p&#62;I did mention that I am running the latest version ( 1.5.3 ).&#60;br /&#62;
I cannot replicate the problem, so it is impossible test for.&#60;br /&#62;
I hope you guys don't mind me throwing a bunch of code ind here, but maybe someone else can see something I am not seeing in the code that generates the html.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Table body
$email_body .= &#38;#39;&#38;lt;tbody&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;amp;nbsp;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;background: #d7e3ef;&#38;quot;&#38;gt;&#38;lt;th colspan=&#38;quot;2&#38;quot;&#38;gt;&#38;lt;h3 style=&#38;quot;padding:0;margin:0;&#38;quot;&#38;gt;Ordre info:&#38;lt;/h3&#38;gt;&#38;lt;/th&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Buffet:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$buffet.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($starter))			$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Forret:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$starter.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($desert))				$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Desert:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$desert.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($bread))				$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Brød:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$bread.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Kuverter:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$seatings.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Dato:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$date.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Tid:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$time.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($institution))		$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Institution:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt; &#38;#39;.$institution.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($company))			$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Firma:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$company.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($ean))				$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;EAN:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$ean.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if($use_dif_address == &#38;quot;Yes&#38;quot;)	$email_body .= &#38;#39;&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;amp;nbsp;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if($use_dif_address == &#38;quot;Yes&#38;quot;)	$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;background: #d7e3ef;&#38;quot;&#38;gt;&#38;lt;th colspan=&#38;quot;2&#38;quot;&#38;gt;&#38;lt;h3 style=&#38;quot;padding:0;margin:0;&#38;quot;&#38;gt;Bestillings adresse:&#38;lt;/h3&#38;gt;&#38;lt;/th&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if($use_dif_address == &#38;quot;Yes&#38;quot;)	$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Navn:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$contact_name.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if($use_dif_address == &#38;quot;Yes&#38;quot;)	$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Adresse:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$contact_address.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if($use_dif_address == &#38;quot;Yes&#38;quot;)	$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Postnummer &#38;amp; By:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt; &#38;#39;.$contact_zip.&#38;#39; &#38;#39;.$contact_city.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($phone)) 				$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Telefon:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt; &#38;#39;.$phone.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Mobil:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;#39;.$mobile.&#38;#39;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt; &#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;background: #d7e3ef;&#38;quot;&#38;gt;&#38;lt;th colspan=&#38;quot;2&#38;quot;&#38;gt;&#38;lt;h3 style=&#38;quot;padding:0;margin:0;&#38;quot;&#38;gt;Pris&#38;lt;/h3&#38;gt;&#38;lt;/th&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Buffet pris:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;Kr. &#38;#39;.$buffet_price.&#38;#39;,-&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Leveringspris:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;Kr. &#38;#39;.$shippingrate.&#38;#39;,-&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr style=&#38;quot;border-bottom:1px solid #ddd;&#38;quot;&#38;gt;&#38;lt;th&#38;gt;Pris ialt:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;lt;strong&#38;gt;Kr. &#38;#39;.$total_price.&#38;#39;,-&#38;lt;/strong&#38;gt;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;amp;nbsp;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
if(!empty($message))			$email_body .= &#38;#39;&#38;lt;tr&#38;gt;&#38;lt;th&#38;gt;Kommentar:&#38;lt;/th&#38;gt;&#38;lt;td&#38;gt;&#38;lt;p&#38;gt;&#38;#39;.$message.&#38;#39;&#38;lt;/p&#38;gt;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#38;#39;;
$email_body .= &#38;#39;&#38;lt;/tbody&#38;gt;&#38;#39;;
// End table body&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-36796</link>
			<pubDate>Sat, 01 Oct 2011 01:27:34 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36796@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Vayu, what version of Gravity Forms are you using?  This issue occurred once before, but it was a long time ago, prior to version 1.3.11:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/problem-with-image-link-in-notification-emails&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/problem-with-image-link-in-notification-emails&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You've been around long enough that maybe you are still running old versions of Gravity Forms and maybe WordPress?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-36720</link>
			<pubDate>Fri, 30 Sep 2011 13:47:07 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">36720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We have never had this reported before.  You would have to try and find a way to replicate the issue in order to do some tests to see what is causing it.  If it can't be replicated, it can't be debugged because in order to debug it you need to be able to test while it's happening.  It sounds like some sort of server issue.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Notification HTML breaks sometimes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-html-breaks-sometimes#post-36681</link>
			<pubDate>Fri, 30 Sep 2011 06:16:48 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">36681@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have weird issue with my HTML notifications.  Sometimes the HTML breaks or it adds a weird character like &#34;!&#34;.  This only happens sometimes.&#60;br /&#62;
I have an example &#60;a href=&#34;http://www.box.net/shared/zvzfdqphv0boc4f8q8vp&#34; rel=&#34;nofollow&#34;&#62;here&#60;/a&#62;&#60;br /&#62;
The Mobil number is placed right next to &#34;Mobil:&#34;.  There is an blank space in the word &#34;Emai l&#34; and an exclamation mark is thrown in there.&#60;/p&#62;
&#60;p&#62;Like I said, this only happens sometimes and there is no rule of thumb.  I have seen this on Apple Mail and Outlook.&#60;/p&#62;
&#60;p&#62;Does anyone have an idea what could be going wrong?&#60;/p&#62;
&#60;p&#62;I am using the latest version of GravityForms and Auto-Formating is ticked off.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Vayu
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
