Skip Navigation

[Fermé] CRED adds strange characters in notification email

This support ticket is created Il y a 7 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 8 réponses, has 3 voix.

Last updated by Nigel Il y a 7 années et 5 mois.

Assisted by: Nigel.

Auteur
Publications
#439494

I know, CRED doesn't support html-emails out of the box. That's really a pity. Because all of my clients are asking for responsive html-emails and aren't satisfied with the provided CRED-data-table. I think it would be a huge improvement and a big timesaver, if it would be easier to handle html-emails in CRED by giving us the chance to add CSS and to build own templates (for example with Toolsets Content Templates). But anyway ...

I set up my html-emails in the past by adding my css in the footer of the body-area of my email. (CRED deleted my styles, when I added them in the header.) That worked so far.

But since the last Toolset-update, CRED adds strange characters ("3D") to my notification-email in almost every tag. For example cellpadding=3D"20", border=3D"0" ...

And it's not possible to add html-, head- and body-tags any more. This is the code I'm getting in my mail:

<p><br>
<html dir="ltr"><br>
<head><br>
<meta name="viewport" content="width=device-width"><br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><br>
</head><br>
<body></body></html></p>

As you can see, CRED wraps my code in p- and br-tags. I can get rid of the br-tags, when writing all of my code in one line. But the p-tag appears anyway. And it closes my body- and html-tags before my content (although I closed them at the end of my content).

So how can I suppress this?
I really love CRED and it's possibilities. But also have to handle html-emails. Please for help!

#439692

I confirm there is something wrong here.

I can see the breaks and unwanted HTML Tags using your code, and I notice, that this does not happen in all HTML tags.

Also, it randomly adds closing or open <br> tags.

I need to analize this and send it to the Developers.

I used the native Text Editor to add my HTML to the CRED Notification (not the visual mode)
Do you use another Approach to add your HTML/CSS?

Please let me know if so.

#439714

Yes, Beda,
I'm adding my html in text-editor-mode.

Anyhow, you have to be careful there, because if you are switching to the visual-mode, CRED deletes some of the code you have entered before in text-mode. That's really annoying, because if you are editing an existing CRED-form and you forgot to switch to text-mode before opening the settings-page of CRED, then it deletes some of your code-lines in the notification-email. Even if you don't make any changes to the notification and for example only change the text for the redirect-page. That happened more than once to me. So you have to get sure (for example by editing a page first and switching there to the text-editor-mode), that you are opening the CRED-form in text-editor-mode …

For the record: I also tested to fill in my html-headings with a content-template. That didn't work at all. The code from the content-template doesn't appear in the html-email.

Please for help. Otherwise I can't update my other websites to the newest Toolset-Version.
And if there is a chance to get better html-email-support in CRED to the feature-requests, I would be happy to hear about this update ...

#440703

I have done some tests and read a lot of Topics on this.

1. Switching between editors and see the stripped content (HTML) is not something that we can solve.
It happens even on native WordPress Edit Screens and is expected.
Also, if you do swithc to visual, back to text, and see that the content is gone, you can reload the page and the contnet is back.

The main idea here is that Text Mode is to use for Custom HTML content and once you do this you have to stick with it. This is - as crazy as it sounds - WordPress design. You can find several reports of this in the WordPress forum itself, all ending in the sasme statement, it's expdected.

2. Secondly, you have a set of allowed HTML tags in WordPress.
Head and Body are not one of them.
You can try this code on a Single Post as example:

$allowed_tags = wp_kses_allowed_html( 'post' );
var_dump( $allowed_tags );

You will see all allowed HTML tags, and above mentioned are not included.

3. In CRED you can add Custom HTML Tags to the Allowed ones.
We do have a set of them in Toolset > Settings > Forms > Content Filter
But those are mostly for what the user can submit in CRED Forms themselves. (therefore not changing what is allowed in WordPress text Editors.)
You can also use a Custom Function to extend them. Example here:
http://pastebin.com/2vwhsCMW

4. I think the only what we can focus on here, is the unwanted HTML added to the Email, the bad closing of tags, and the adding of characters to the things you named.

Can you provide me a FULL example of a TEXT mode content of an email notification of yours, so I can analize this directly and report each issue separately?

The request to be able to create so called HTML email content, woudl be a new feature request.
(Such as build kind of a template for the emails)

I will also discuss this with the Developers this Thursday.

Please can you provide me a full HTML Example so I can properly report this to the Developers?

I must apologize to say, that this is not something we can solve very fast, I see already it will involve several things in our code, which will require perhaps even a new method how we create the notifications.

#440736

Thanks Beda,
for all explanations. And for the tip to reload the page, when accidentally switched to visual-mode. That helps a lot. I will place my email-code in the next post. But first:

The emails which are sent through CRED are html-emails anyway, I think. In the email-source-code I can see this:

Content-Type: text/html; charset=UTF-8

In my opinion, this is set by CRED, isn't it? And your DATA-table uses css also. So there should be no problem to handle html. If you would put a head-section and a open body-tag before the input of the CRED-field and a closed body-tag below it, then it would be pure html. Or am I wrong?

It already works if I am placing my css-styles in my content-table. That's not really the best solution, and it would be better to place them in the head-section, but it works. The only reason, why I would have to place the head-section in my CRED-email is, that I have to add meta-tags, like:

<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Without these meta-tags, the link "View in Browser", which is provided in Outlook-emails, opens the email in Internet-Explorer without the correct UTF-8-formatting, displays unencoded characters and isn't responsive. And that hurts a bit ... So if you would place these meta-tags in your head-section of your email-template, and would provide a hook to insert css-styles in there (like you do in content-templates or in the CRED-form itself), that shouldn't be too tricky. And this would be by far the best solution for me 🙂 (Perhaps besides an additionally provided text-version of the email ...)

But back to the strange characters I mentioned, the "3D"s: <table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%" ... I found out, when sending from my localhost this characters don't show up. Only on my test-installation on my webserver. So it might be, that there is a problem with my php on this webserver, or with my email-settings there. I will try it on another webserver in a few days. Hopefully this characters are gone there.

So the only problem left for me, is to put the mentioned meta-tags in my CREDs emails.
Perhaps you can help me with this?

#440738

My email-template in CRED, when adding head-section, too:

<html dir="ltr"><head><meta name="viewport" content="width=device-width"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>
<table class="background" border="0" cellpadding="0" cellspacing="0" align="center" width="100%" style="width: 100%; font-size: 13px; line-height: 22px;">
  <tbody>
    <tr align="center">
      <td align="center" valign="top">
      	<center>          
          <table class="respTable" border="0" cellpadding="0" cellspacing="0" width="660" style="width: 660px;">
            <tbody>
              <tr>
                <td>               
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" height="150" style="width: 100%; height: 150px;">
                    <tbody>
                      <tr class="background">
                        <td valign="top" align="right">
<img src="<em><u>hidden link</u></em>" alt="Logo Pension Herzog" height="150" align="right" valign="top" style="height: 150px;" />
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
          <table class="respTable" border="0" cellpadding="20" cellspacing="0" width="100%" width="660" style="width: 660px; text-align: left; background-color: #FFFFFF;" >
            <tbody>
              <tr>
                <td>
<!-- TITELZEILE -->
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" style="width: 100%;">
                  	<tbody>
         	            <tr>
      	              	<td height="20"></td>
     	               	</tr>
		                 	<tr>
    	                	<td style="font-size: 16px; line-height: 22px;">
<strong>Neue Anfrage von [types field='anfr-vorname'][/types] [types field='anfr-nachname'][/types] am [wpv-post-date format='d.m.Y']</strong>
            	          </td>
          	          </tr>
        	            <tr>
      	              	<td height="20"></td>
     	               </tr>
                    </tbody>
                  </table>
<!-- TABELLENZEILEN -->
                  <table border="0" cellpadding="20" cellspacing="0" width="100%" style="width: 100%; border-bottom: 1px solid #FFFFFF;">
                  	<tbody>
	                    <tr class="background">
  	                    <td width="35%" valign="top">
<strong>Name</strong>
              	        </td>
                	      <td>
<strong>[types field='anfr-vorname'][/types] [types field='anfr-nachname'][/types]</strong>
  	                    </td>
    	                </tr>
                    </tbody>
                  </table>
                  <table border="0" cellpadding="20" cellspacing="0" width="100%" style="width: 100%; border-bottom: 1px solid #FFFFFF;">
                  	<tbody>
	                    <tr class="background">
  	                    <td width="35%" valign="top">
<strong>Kontakt</strong><br />
[wpv-conditional if="( $(wpcf-anfr-telefon) ne '' )"]<span style="float:right;">Telefon</span><br />[/wpv-conditional]<span style="float:right;">Land</span>
              	        </td>
                	      <td>
<strong>[types field='anfr-email'][/types]</strong><br />
[wpv-conditional if="( $(wpcf-anfr-telefon) ne '' )"][types field='anfr-telefon'][/types]<br />[/wpv-conditional][types field='anfr-land'][/types]
  	                    </td>
    	                </tr>
                    </tbody>
                  </table>
                  <table border="0" cellpadding="20" cellspacing="0" width="100%" style="width: 100%; border-bottom: 1px solid #FFFFFF;">
                  	<tbody>
	                    <tr class="background">
  	                    <td width="35%" valign="top">
<strong>Reisedaten</strong>
              	        </td>
                	      <td>
<strong>[types field='anfr-anreise' style='text' format='d.m.Y'][/types] - [types field='anfr-abreise' style='text' format='d.m.Y'][/types]</strong>[wpv-conditional if="( $(wpcf-anfr-nachte) ne '' )"], [types field='anfr-nachte' format='FIELD_VALUE'][/types] Nächte [/wpv-conditional]<br />
[types field='anfr-erwachsene'][/types][wpv-conditional if="( $(wpcf-anfr-kinder) ne '0' ) AND ( $(wpcf-anfr-kinder) ne '' )"], [types field='anfr-kinder'][/types]<br />[/wpv-conditional]
[wpv-conditional if="( $(wpcf-anfr-kinder) gte '1' )"]Alter bei Anreise: [types field='anfr-alter1'][/types][/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-kinder) gte '2' )"], [types field='anfr-alter2'][/types][/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-kinder) gte '3' )"], [types field='anfr-alter3'][/types][/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-kinder) gte '4' )"], [types field='anfr-alter4'][/types][/wpv-conditional]
  	                    </td>
    	                </tr>
                    </tbody>
                  </table>
                  <table border="0" cellpadding="20" cellspacing="0" width="100%" style="width: 100%; border-bottom: 1px solid #FFFFFF;">
                  	<tbody>
	                    <tr class="background">
  	                    <td width="35%" valign="top">
<strong>Anfrage</strong><br />[wpv-conditional if="( $(wpcf-anfr-sok) ne '' )"]<span style="float:right;">Schnee-Okay</span><br />[/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-aktionen) ne '' )"]<span style="float:right;">Aktionen</span><br />[/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-services) ne '' )"]<span style="float:right;">Services</span>[/wpv-conditional]
              	        </td>
                	      <td>
<strong>[types field='anfr-zimmer' separator=', '][/types]</strong><br />[wpv-conditional if="( $(wpcf-anfr-sok) ne '' )"][types field='anfr-sok' separator=', '][/types]<br />[/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-aktionen) ne '' )"][types field='anfr-aktionen'][/types]<br />[/wpv-conditional][wpv-conditional if="( $(wpcf-anfr-services) ne '' )"][types field='anfr-services' separator=', '][/types][/wpv-conditional]
  	                    </td>
    	                </tr>
                    </tbody>
                  </table>
[wpv-conditional if="( $(wpcf-anfr-nachricht) ne '' )"]
                  <table border="0" cellpadding="20" cellspacing="0" width="100%" style="width: 100%; border-bottom: 1px solid #FFFFFF;">
                  	<tbody>
	                    <tr class="background">
  	                    <td width="35%" valign="top">
<strong>Anmerkung</strong>
              	        </td>
                	      <td>
[types field='anfr-nachricht'][/types]
  	                    </td>
    	                </tr>
                    </tbody>
                  </table>
[/wpv-conditional]
<!-- ENDING -->
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" style="width: 100%;">
                  	<tbody>
      	              <tr>
        	              <td height="25"></td>
          	          </tr>
                    </tbody>
                  </table>
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" style="width: 100%;">
                  	<tbody>
                     <tr>
  	                    <td>
Zur Anfrage im Web: %%POST_ADMIN_LINK%%
              	        </td>
                	    </tr>
	                    <tr>
  	                    <td height="25"></td>
                	    </tr>
                     </tbody>
                  </table>
                </td>
              </tr>
            </tbody>
          </table>
<!-- Footer -->
          <table class="respFooter" width="595" border="0" cellpadding="0" cellspacing="0" style="width: 595px;">
          	<tbody>
	          	<tr>
  	          	<td height="6"></td>
    	        </tr>
      	    	<tr>
        	    	<td align="center" style="font-size: 11px; line-height: 16px; text-align: center;">
                	Gesendet von <a href="<em><u>hidden link</u></em>"><strong>Pension Herzog</strong></a>
    	          </td>
 							</tr>
        	  	<tr>
	            	<td height="15"></td>
  	          </tr>
            </tbody>
          </table>
        
      	</center>
      </td>
    </tr>
  </tbody>
<style type="text/css">
	/* CLIENT-SPECIFIC STYLE */
		#outlook a {padding: 0;} /* Force Outlook to provide a "view in browser" message */
		.ReadMsgBody {width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
		.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail for normal line spacing */
		body, table, td, p, a, li, blockquote {-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
		table, td {mso-table-lspace: 0pt; mso-table-rspace: 0pt;} /* Remove spacing between tables in Outlook 2007 and up */
		img {-ms-interpolation-mode: bicubic;} /* Allow smoother rendering of resized image in Internet Explorer */
	/* RESET STYLES */
		body {margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
		img {border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none;}
		table {border-collapse: collapse !important;}
		body { height:100% !important; margin: 0; padding: 0; width: 100% !important;}
		a img { border: 0; }
		/* TEMPLATE STYLES */
		body, table, tr, td, p { font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 22px; color: #4D4D4D; }
		body, .background { background-color: #F2F5F5; }
		a { color: #338866; font-weight: bold; text-decoration: none; }
	@media only screen and (max-width: 660px) {
		.respTable { width: 100% !important; }
		.respFooter { width: 90% !important; }
	}
	@media only screen and (max-width: 520px) {
		/* MY SPECIFIC STYLES */
			body, table, td, p, a, li, blockquote {-webkit-text-size-adjust:none !important;} /* Prevent Webkit platforms from changing default text sizes */
    	body { width:100% !important; min-width:100% !important; } /* Prevent iOS Mail from adding padding to the body */
	}
</style>
</table></body></html>
#440744

Output when sending from my webservers test-installation (I deleted sensitive informations like email and names):

X-Mailer: PHPMailer 5.2.14 (<em><u>hidden link</u></em>)
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p><html dir=3D"ltr"><head><meta name=3D"viewport" content=3D"width=3Ddev=
ice-width"><meta http-equiv=3D"Content-Type" content=3D"text/html; charse=
t=3DUTF-8"></head><body></body></html></p>
<table class=3D"background" border=3D"0" cellpadding=3D"0" cellspacing=3D=
"0" align=3D"center" width=3D"100%" style=3D"width: 100%; font-size: 13px; 
line-height: 22px;">
<tbody>
<tr align=3D"center">
<td align=3D"center" valign=3D"top">
      	<center>         =20
<table class=3D"table respTable" border=3D"0" cellpadding=3D"0" cellspaci=
ng=3D"0" width=3D"660" style=3D"width: 660px;">
<tbody>
<tr>
<td>
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%" he=
ight=3D"150" style=3D"width: 100%; height: 150px;">
<tbody>
<tr class=3D"background">
<td valign=3D"top" align=3D"right">
<img src=3D"<em><u>hidden link</u></em>
16/09/pensionherzog.png" alt=3D"Logo Pension Herzog" height=3D"150" align=
=3D"right" valign=3D"top" style=3D"height: 150px;">
                        </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table class=3D"table respTable" border=3D"0" cellpadding=3D"20" cellspac=
ing=3D"0" width=3D"660" style=3D"width: 660px; text-align: left; backgrou=
nd-color: #FFFFFF;">
<tbody>
<tr>
<td>
<!-- TITELZEILE -->
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%" st=
yle=3D"width: 100%;">
<tbody>
<tr>
<td height=3D"20"></td>
</tr>
<tr>
<td style=3D"font-size: 16px; line-height: 22px;">
<strong>Neue Anfrage von NAME am 28.09.2016</strong>
            	          </td>
</tr>
<tr>
<td height=3D"20"></td>
</tr>
</tbody>
</table>
<p><!-- TABELLENZEILEN --></p>
<table border=3D"0" cellpadding=3D"20" cellspacing=3D"0" width=3D"100%" s=
tyle=3D"width: 100%; border-bottom: 1px solid #FFFFFF;">
<tbody>
<tr class=3D"background">
<td width=3D"35%" valign=3D"top">
<strong>Name</strong>
              	        </td>
<td>
<strong>NAME</strong>
  	                    </td>
</tr>
</tbody>
</table>
<table border=3D"0" cellpadding=3D"20" cellspacing=3D"0" width=3D"100%" s=
tyle=3D"width: 100%; border-bottom: 1px solid #FFFFFF;">
<tbody>
<tr class=3D"background">
<td width=3D"35%" valign=3D"top">
<strong>Kon=C2=ADtakt</strong><br>
<span style=3D"float:right;">Land</span>
              	        </td>
<td>
<strong><a href=3D"&#x6d;&#x61;&#x69;&#x6c;&#116;&#111;:cr&#x61;&#x6e;&#x=
62;&#x65;&#x72;&#114;&#121;&#064;ch&#x65;" title=3D"EMAIL#101;&#114;&#x72;=
&#x79;&#x40;&#x63;&#x68;&#x65;&#x6c;lo.at">&#099;&#x72;a&#x6e;&#x62;&#101;=
&#x72;r&#x79;&#x40;&#099;&#x68;e&#x6c</a></strong><br>
Wien&nbsp;</td>
</tr>
</tbody>
</table>
<table border=3D"0" cellpadding=3D"20" cellspacing=3D"0" width=3D"100%" s=
tyle=3D"width: 100%; border-bottom: 1px solid #FFFFFF;">
<tbody>
<tr class=3D"background">
<td width=3D"35%" valign=3D"top">
<strong>Rei=C2=ADse=C2=ADda=C2=ADten</strong>
              	        </td>
<td>
<strong>28.09.2016 =E2=80=93 29.09.2016</strong><br>
1 Erwach=C2=ADse=C2=ADner, 1&nbsp;Kind<br>
Alter bei Anreise: 3 - 5&nbsp;Jahre&nbsp;</td>
</tr>
</tbody>
</table>
<table border=3D"0" cellpadding=3D"20" cellspacing=3D"0" width=3D"100%" s=
tyle=3D"width: 100%; border-bottom: 1px solid #FFFFFF;">
<tbody>
<tr class=3D"background">
<td width=3D"35%" valign=3D"top">
<strong>Anfrage</strong><br><span style=3D"float:right;">Aktio=C2=ADnen</=
span><br><span style=3D"float:right;">Ser=C2=ADvices</span>
              	        </td>
<td>
<strong>Ein=C2=ADbett=C2=ADzim=C2=ADmer, Dop=C2=ADpel=C2=ADzim=C2=ADmer</=
strong><br>+ Mahl=C2=ADzeit<br>Park=C2=ADm=C3=B6g=C2=ADlich=C2=ADkeit&nbs=
p;PKW&nbsp;</td>
</tr>
</tbody>
</table>
<table border=3D"0" cellpadding=3D"20" cellspacing=3D"0" width=3D"100%" s=
tyle=3D"width: 100%; border-bottom: 1px solid #FFFFFF;">
<tbody>
<tr class=3D"background">
<td width=3D"35%" valign=3D"top">
<strong>Anmer=C2=ADkung</strong>
              	        </td>
<td>
<p>Neu=C2=ADer=C2=ADli=C2=ADche Probe zur Best=C3=A4=C2=ADti=C2=ADgungs-E=
-Mail ...</p>

  	                    </td>
</tr>
</tbody>
</table>
<p><!-- ENDING --></p>
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%" st=
yle=3D"width: 100%;">
<tbody>
<tr>
<td height=3D"25"></td>
</tr>
</tbody>
</table>
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%" st=
yle=3D"width: 100%;">
<tbody>
<tr>
<td>
Zur Anfrage im Web: MYLINK</td>
</tr>
<tr>
<td height=3D"25"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><!-- Footer --></p>
<table class=3D"table respFooter" width=3D"595" border=3D"0" cellpadding=3D=
"0" cellspacing=3D"0" style=3D"width: 595px;">
<tbody>
<tr>
<td height=3D"6"></td>
</tr>
<tr>
<td align=3D"center" style=3D"font-size: 11px; line-height: 16px; text-al=
ign: center;">
                	Gesen=C2=ADdet von LINK</strong></a>
    	          </td>
</tr>
<tr>
<td height=3D"15"></td>
</tr>
</tbody>
</table>
<p>      	</p></center>
      </td>
</tr>
</tbody>
<style type=3D"text/css">
	/* CLIENT-SPECIFIC STYLE */
		#outlook a {padding: 0;} /* Force Outlook to provide a "view in browser=
" message */
		.ReadMsgBody {width:100%;} .ExternalClass{width:100%;} /* Force Hotmail=
 to display emails at full width */
		.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass f=
ont, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force =
Hotmail for normal line spacing */
		body, table, td, p, a, li, blockquote {-webkit-text-size-adjust: 100%; =
-ms-text-size-adjust: 100%;} /* Prevent WebKit and Windows mobile changin=
g default text sizes */
		table, td {mso-table-lspace: 0pt; mso-table-rspace: 0pt;} /* Remove spa=
cing between tables in Outlook 2007 and up */
		img {-ms-interpolation-mode: bicubic;} /* Allow smoother rendering of r=
esized image in Internet Explorer */
	/* RESET STYLES */
		body {margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-s=
ize-adjust: 100%; }
		img {border: 0; height: auto; line-height: 100%; outline: none; text-de=
coration: none;}
		table {border-collapse: collapse !important;}
		body { height:100% !important; margin: 0; padding: 0; width: 100% !impo=
rtant;}
		a img { border: 0; }
		/* TEMPLATE STYLES */
		body, table, tr, td, p { font-family: Arial, Helvetica, sans-serif; fon=
t-size: 13px; line-height: 22px; color: #4D4D4D; }
		body, .background { background-color: #F2F5F5; }
		a { color: #338866; font-weight: bold; text-decoration: none; }
	@media only screen and (max-width: 660px) {
		.respTable { width: 100% !important; }
		.respFooter { width: 90% !important; }
	}
	@media only screen and (max-width: 520px) {
		/* MY SPECIFIC STYLES */
			body, table, td, p, a, li, blockquote {-webkit-text-size-adjust:none !=
important;} /* Prevent Webkit platforms from changing default text sizes =
*/
    	body { width:100% !important; min-width:100% !important; } /* Preven=
t iOS Mail from adding padding to the body */
	}
</style>
</table>
</body>
</html>
<p></p>
#441361

Thank you.

For customizing the header of Emails we do have this filter:
https://toolset.com/documentation/user-guides/cred-api/#cred-mail-header
It supports all this headers:
hidden link

This is whatis supported with the API and it should solve some parts of your Header section.

I am awaiting some information of our developers regarding perhaps changing this whole process and having a different way to edit/create notifications.

Also Mohammed will come in here (A colleague of mine) Since will obviously not solve this in time - and I will be on vacation starting today.

We will keep you up to date with everything.

#445275

Nigel
Supporter

Languages: Anglais (English ) Espagnol (Español )

Timezone: Europe/London (GMT+00:00)

Hi Diana

I took on this ticket because Beda was on holiday, but reading through it I'm not sure what if anything I need to escalate as a bug (rather than the feature request of being able to use templates for html emails).

You say the <p> and <br> characters being added were not showing up on your localhost and you were going to check on another server if you still had the problem or whether it was specific to the original server which prompted you to report the issue.

Can you clarify if you have been able to reproduce the problem on another server?

If so I will follow this up and escalate it so it can be investigated by our developers.

Le sujet ‘[Fermé] CRED adds strange characters in notification email’ est fermé à de nouvelles réponses.