CGBF Sending a html table

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
HarmO
Power Poster
Power Poster
Posts: 251
Joined: Thu Jan 26, 2012 3:22 pm

CGBF Sending a html table

Post by HarmO »

Hi, i made a simple chopping cart and want to send the order with CGBF, but all the HTML table tags gets striped out.

Code: Select all

<table callspacing="0" cellpadding="5" border="1">
		<tbody><tr bgcolor="#999999">
			<th>Product</th>
			<th>aantal</th>
			<th>Prijs</th>
		</tr>
				<tr>
			<td>
				Broodje Americain (Wit)							</td>
			<td>2</td>
			<td>€5,20</td>
		</tr>
				<tr>
			<td>
				Broodje Gehakt (Wit)							</td>
			<td>1</td>
			<td>€2,60</td>
		</tr>
				<tr>
			<td>
				Broodje Kaas (Bruin)							</td>
			<td>1</td>
			<td>€3,10</td>
		</tr>
		
		<tr bgcolor="#DDDDDD">
			<td colspan="2"><b>Totaal</b></td>
			<td><b>€ 10,9</b></td>
		</tr>
	</tbody></table>
First i loaded the table in a hidden textfield called order.
Since that didn't work i generate the HTML in my e-mail template itself, but still the tags get filtered out.

any suggestions?
Kind regards,
HarmO
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: CGBF Sending a html table

Post by rotezecke »

have you tried {literal}{/literal} ?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGBF Sending a html table

Post by calguy1000 »

I have sent tables in emails with CGBF. And verified the code. CGBF does not strip any HTML out of the various body templates.

Email subjects cannot contain HTML structure and therefore they are stripped of tags.

I suggest you look at the raw output of the email to see if it is your email client that may be messing with things.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
HarmO
Power Poster
Power Poster
Posts: 251
Joined: Thu Jan 26, 2012 3:22 pm

Re: CGBF Sending a html table

Post by HarmO »

Hi thanks for the feedback.

I don't see why i should use {literal} since it is just HTML and some variables.

I could send html tables before but not anymore.
I did do a update of CGBF in the meanwhile (not saying it is the module, just want to give you all the info), modified the table (added bg-colors) and send over "SMTP" instead of by "mail".

Clearly we can't place html in the subject.
if i checked the e-mail source code, the table was striped out of the body so it is not Thunderbird that is messing up.

Since the urgency of the project and that i was unable to solve it with html tables, i solved it by creating a nice ASCII table and this comes true.
Kind regards,
HarmO
Post Reply

Return to “Modules/Add-Ons”