Mailcontroller stripping out code

Just wondering if anyone else has experienced this problem.
I've not been able to find much on Google so thought I'd post here.

A company I am working for uses Mailcontroller (an anti-virus, anti-spam programme).

It seems to corrupt code by adding in "defanghtml"

For example:
<table width="560" border="0" cellspacing="0" cellpadding="0" style="margin-left:20px; margin-top:10px">
  <tr>
    <td width="256" style="color:#660099; font-size:12px; font-family:Arial, Helvetica, sans-serif;">The days are getting longer, the Easter

BECOMES:

<table width="560" border=0 cellspacing=0 cellpadding=0 defanghtml_style="margin-left:20px; margin-top:10px">
  <tr>
    <td width="256" defanghtml_style="color:#660099; font-size:12px; font-family:Arial, Helvetica, sans-serif;">The days are getting longer, the Easter

The consequence is that none of the style tags work....and a nicely designed email looks horrible.

I'm curious if anyone else is aware of this problem, and more vitally if anyone has come up with any solutions?

Thanks

Adam

Mathew Mathew, 8 years ago

Hey Adam, seems like the same problem discussed here: http://www.webdeveloper.com/forum/showthread.php?t=158600

It is not likely something you can change from the sending side I'm afraid.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
visitorgrowth, 8 years ago

Thanks for the reply Matthew.

Yes, that link is describing the same problem.

I've managed to come up with a basic workaround, including font face  and size tags etc to ensure at least some style is applied to the email.

I'm sure that this is going to become a more and more widespread issue, so something to bear in mind!

ramnadinfo, 7 years ago

Hey adam,
it might be issue with some email client. ex:outlook exp.
can u try without inline style sheet..
instead for using the style inside the html tag.. try to use some classes and write the class definition in the top of the page..

i hope it will works
Thanks
Shan

dergal, 6 years ago

Hi - just registered to post the same q's - what is odd is that sometimes style works and sometimes it doesn't ...  its the randomness of why it can sometimes be allowed through that is bugging me! If anyone does find a work around that would be amazing.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098