avesovum Posted August 4, 2013 Share Posted August 4, 2013 Hi All, Does anyone know how to display code in customer emails. For example: I would like the customer to receive the following code with a merge field in the welcome email. <iframe id="myframe" src="http://www.{$service_domain}" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none; width:100%; height: 500px"></iframe> Is this possible? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted August 6, 2013 WHMCS Support Manager Share Posted August 6, 2013 Hi, Try wrapping your code in <xmp> and </xmp> tags. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 7, 2013 Share Posted August 7, 2013 From source https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xmp Note: Do not use this element. It has been deprecated since HTML3.2 and was not implemented in a consistent way. It was completely removed from the language in HTML5. Use the <pre> element or, if semantically adequate, the <code> element instead. Note that you will need to escape the '<' character as '<' to make sure it is not interpreted as markup. A monospaced font can also be obtained on any element, by applying an adequate CSS style using monospace as the generic-font value for the font-family property. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.