The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Stylesheet is clobbered in Campaign Details

Highlighted
Regular Visitor

Stylesheet is clobbered in Campaign Details

Hello,

I have a Custom Campaign and I'm trying to use the API to make a copy of that Campaign.  When I get the Campaign Details of the existing campaign, the stylesheet is returned in the response as shown below.  It's been clobbered. Is this a problem on CC or is there something I can do to get this formated correctly.   I'm using the ctctWrapper.php library (available from this site) which is using curl to do the requests.

 

<StyleSheet>body.margin,body.background,body.font-family,body.font-size,body.color,innertable.margin-top,banner.text-align,banner.font-size,banner.font-family,banner.padding,banner2.font-size,aimg.border,a.color,a.text-decoration,a.font-size,p.margin,h1.font-size,h1.margin,h1.padding,h1.font-weight,h2.font-size,h2.margin,h2.padding,h2.font-weight,largelist.font-size,largelist.font-family,largelist.margin-bottom,clr.clear,wrap.background,wrap.width,wrap.margin,wrap.border,wrap.font-size,wrap.font-family,content.float,content.width,content.background,content.padding,footer.float,footer.width,offer.font-size,offer.font-family,offer.padding-top,myspeed.border-top,myspeeddiv.margin,myspeeddivimg.float,myspeeddivspan.background,myspeeddivspan.text-align,myspeeddivspan.border,myspeeddivspan.padding,myspeeddivspan.color,myspeeddivspan.font-size,pad10.padding</StyleSheet>

6 REPLIES 6
Highlighted
Employee

Re: Stylesheet is clobbered in Campaign Details

Hello,

 

I tried recreating the issue you are having and I can definitely recreate it.  I am going to be contacting our engineers and letting them know that this is an issue.

 

If you have any questions please let me know.

 

Regards

Benjamin Soder
NOC Analyst
Constant Contact
Highlighted
Regular Visitor

Re: Stylesheet is clobbered in Campaign Details

Any news yet?

Highlighted
Employee

Re: Stylesheet is clobbered in Campaign Details

Hello,

 

Our engineers are still working to fix this.  I am going to contact them today and get an update as to where this process is.  Once I receive any new information I will post it here on this forum.

 

Sincerely,

Benjamin Soder
NOC Analyst
Constant Contact
Highlighted
Frequent Visitor

Re: Stylesheet is clobbered in Campaign Details

I know this is 2 years old and I am still seeing the same results. The style_sheet returned is not able to be turned around.

 

Have there been any updates or work arounds for this?

 

Thanks,
Scott

Highlighted
Employee

Re: Stylesheet is clobbered in Campaign Details

Hi Scott,

 

I'm sorry, but as you've seen, when style sheets are returned via the API, they are still significantly different from how they were input.  It is something we're looking into fixing, but there are significant obstacles to fixing the issue.

 

Although we recognize this as a serious issue, we recommend against using an external style sheet, since some email clients like gmail strip out external style sheets immediately and won't render them.  Even email clients that do recognize external style sheets often don't apply the styles correctly where specified, and we've found that the best way to get styles rendered consistently is to specify styles inline for each span/div/p/other.

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Frequent Visitor

Re: Stylesheet is clobbered in Campaign Details

Thanks Shannon for your honest, and thorough reply. I spologize for reopening a 2-year old thread.

 

While disappointed, I understand and will use the inline styles.

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured