cancel
Showing results for 
Search instead for 
Did you mean: 
Due to an issue with YouTube, inserting videos in your emails is showing an error. Until they are able to resolve this issue, we recommend using a different video hosting service. We will continue to monitor this outage and update you as we have more information.

Empty text content

Member

Empty text content

Hey Folks,

 

I've been working on a custom Drupal module to automate a weekly newsletter. I've got the API working and the email is being uploaded and scheduled. The problem is when I log into Constant Contact and preview the email, there's nothing in the text version.  I've checked and validated the json data, and it looks okay to me, so im at a loss. any thoughts?

 

{
"id": "1117385566246",
"name": "This Week At Maiden Alley Cinema - May 16th, 2014",
"subject": "This Week At Maiden Alley Cinema",
"status": "DRAFT",
"from_name": "Maiden Alley Cinema",
"from_email": "xxx@xxx.com",
"reply_to_email": "lxxx@xxx.com",
"template_type": "CUSTOM",
"is_permission_reminder_enabled": false,
"permission_reminder_text": "",
"is_view_as_webpage_enabled": false,
"view_as_web_page_text": "",
"view_as_web_page_link_text": "",
"greeting_salutations": "",
"greeting_name": "NONE",
"greeting_string": "Hello",
"email_content": "<html>\n<body style=\"background: url(http://maidenalleycinema.com/sites/all/themes/maiden2013/images/curtain.jpg) repeat-x left top #4f0200;\n\">\n<div style=\"margin:auto;width: 780px;\">\n <img src=\"http://maidenalleycinema.org/sites/default/files/maiden-logo.png\" alt=\"Maiden Alley Cinema\" style=\"float: left;\"/>\n</div>\n<div style=\"margin-top:15px;margin:auto;background: #fdc100;width: 780px;padding: 12px;border-radius: 12px;font: .9em 'Helvetica Neue'Arial;letter-spacing:1px;line-height: 1.38em;overflow: hidden;display: block;margin-bottom: 50px\">\n <h1>Maiden Alley Cinema Upcoming Shows and Events</h1>\n <h2 property=\"dc:title\" datatype=\"\"><a href=\"http://192.168.1.243/d7.maidenalleycinema.com/newsletters/now-playing-at-maiden-alley-cinema\"></a><... <div>\n <div><p>Landee, This is a test of the Constant Contact module. I still need to do some more formatting, but it's really close now!</p>\n</div>\n <div class=\"field field-name-field-now-playing field-type-viewfield field-label-hidden\"><div class=\"field-items\"><div class=\"field-item even\"><div style=\"font: .9em/1.5em Arial, Helvetica, Geneva, sans-serif;\" >\n <h2 style=\"font-family: 'Helvetica Neue' Arial sans-serif;\n font-size: 2.4em;\n margin-bottom: 18px;\n margin-top: 18px;\n line-height: 1.35em;\">Now Playing</h2>\n\n <div style=\"float:right; margin-left: 15px;\">\n \n <img style = \"\" src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/med_poster/public/Blue%20Ru... height =400 /> </div>\n <h2 style=\"font-family:'Helvetica Neue'\"><a href=\"http://maidenalleycinema.org/films/blue-ruin\" style=\"font-weight:bold; font-size:1.75em;line-height:1.1em; color: #7c0603; margin-bottom: 15px;text-decoration:none\">Blue Ruin</a></h2> <div style='font: italic .9em Arial, sans-serif;'>Starring Eve Plumb, Kevin Kolack, Amy Hargreaves, Devin Ratray &amp; Macon Blair</div> <div style='font: italic .9em Arial, sans-serif;margin-top: 10px;' >Directed by Jeremy Saulnier</div>\n <p>A mysterious outsider's quiet life is turned upside down when he returns to his childhood home to carry out an act of vengeance. Proving himself an amateur assassin, he winds up in a brutal fight to protect his estranged family. </p>\n <div >\n 2013 &bull; 1 hour &amp; 30 minutes \n </div> \n <ul style=\"display: block;clear: both;overflow: hidden; margin-bottom: 25px;\">\n <li style=\"float:left; margin: 0 10px;width:45%\">Fri, 05/16/2014 - 7:00pm</li><li style=\"float:left; margin: 0 10px;width:45%\">Sat, 05/17/2014 - 4:30pm &bull; 7:00pm</li><li style=\"float:left; margin: 0 10px;width:45%\">Sun, 05/18/2014 - 4:30pm &bull; 7:00pm </ul>\n \n <div style=\"width: 400px;margin: 0 auto;\">\n <div style=\"line-height: 0;float: left;border: 1px solid #333;border-radius: 6px;margin-right: 10px;margin-left: 10px;\"><a href=\"http://trailers.apple.com/trailers/independent/blueruin/\" style=\"display: block;height: 20px;line-height: 20px;padding:0 10px;color: #7c0603;text-decoration:none;\" target=\"_blank\" title=\"Watch the trailer\">Watch the Trailer</a></div>\n <div style=\"line-height: 0;float: left;border: 1px solid #333;border-radius: 6px;margin-right: 10px;margin-left: 10px;\"><a href=\"http://www.imdb.com/title/tt2359024/\" style=\"display: block;height: 20px;line-height: 20px;padding:0 10px;color: #7c0603;text-decoration:none;\" target=\"_blank\" title=\"More information\">More Information</a></div>\n </div>\n</div></div></div></div><div class=\"field field-name-field-coming-soon field-type-viewfield field-label-hidden\"><div class=\"field-items\"><div class=\"field-item even\"><h2 style=\"font-family: 'Helvetica Neue' Arial;font-size: 2.4em;margin-bottom: 18px;margin-top: 18px;line-height: 1.35em;clear:both\">Coming Soon</h2>\n<table style=\"border-spacing: 10px;border-collapse: separate;\">\n<tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/events/... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Sat, 5/17/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/events/lower-town-arts-music-festival-official-after-party-friday\">Low... Town Arts & Music Festival OFFICIAL After Party - FRIDAY</a></div><div>Not Rated</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/events/... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Sun, 5/18/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/events/lower-town-arts-music-festival-official-after-party-saturday\">L... Town Arts & Music Festival OFFICIAL After Party - SATURDAY</a></div><div>Not Rated</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/events/... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Fri, 5/23/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/events/leonard-the-band\">Leonard the Band</a></div><div>Not Rated</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/events/... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Fri, 5/30/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/events/trivia-mac-trivia-harder\">Trivia @ MAC: Trivia Harder</a></div><div>Not Rated</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/The%20S... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Mon, 6/9/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/films/the-station-agent\">The Station Agent</a></div><div><p>When his only friend dies, a man born with dwarfism moves to rural New Jersey to live a life of solitude, only to meet a chatty hot dog vendor and a woman dealing with her own personal loss.</p>\n</div><div>Rated R</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/movies/... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Fri, 6/20/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/films/jurassic-park-0\">Jurassic Park</a></div><div><p>During a preview tour, a theme park suffers a major power breakdown that allows its cloned dinosaur exhibits to run amok.</p>\n</div><div>Rated PG-13</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/Boogie%... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Fri, 7/18/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/films/boogie-nights\">Boogie Nights</a></div><div><p>The story of a young man's adventures in the Californian pornography industry of the late 1970s and early 1980s.</p>\n</div><div>Rated R</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/events/... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >Wed, 9/17/2014</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/events/down-the-home-stretch-equestrian-paintings-by-tim-jaeger-vip-pre... THE HOME STRETCH: Equestrian Paintings by Tim Jaeger VIP Preview and Artist Talk</a></div><div>Not Rated</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/Under%2... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >TBA</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/films/under-the-skin\">Under the Skin</a></div><div><p>An alien seductress preys upon hitchhikers in Scotland.</p>\n</div><div>Rated R</div></td></tr><tr><td style=\"vertical-align:top;text-align:center;\"><img src=\"http://192.168.1.243/d7.maidenalleycinema.com/sites/default/files/styles/small_poster/public/Locke.j... /><div style =\"font:.8em Arial, sans-serif;white-space: nowrap;\" >TBA</div></td><td style=\"vertical-align:top\"><div style=\"font-family:'Helvetica Neue' Arial sans-serif;\"><a style=\"font-weight:bold; font-size:1.55em;line-height:1.1em;color:#7c0603;margin-bottom:15px;text-decoration:none;\" href=\"http://maidenalleycinema.org/films/locke\">Locke</a></div><div><p>Ivan Locke, a dedicated family man and successful construction manager, receives a phone call on the eve of the biggest challenge of his career that sets in motion a series of events that threaten his careful cultivated existence. </p>\n</div><div>Rated R</div></td></tr></table></div></div></div><div style=\"\">\n <div>\n <p>Maiden Alley Cinema. 112 Maiden Alley. Downtown Paducah, KY. 270-441-7007</p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\"><tr><th colspan=\"2\" scope=\"col\"><strong>Ticket prices</strong> </th>\n</tr><tbody><tr><td>Children &amp; Students</td>\n<td>$4.75 anytime</td>\n</tr><tr><td>Seniors (65 and up)</td>\n<td>$5.25</td>\n</tr><tr><td>Shows before 5pm</td>\n<td>$5.25</td>\n</tr><tr><td>Adults after 5pm</td>\n<td>$7.25</td>\n</tr></tbody></table><p> </p>\n<p><strong>ATTENTION</strong>: The Maiden Alley Cinema Box Office opens 60 MINUTES before the first showtime of each day.  Tickets for the entire day go on sale at that time.  The Maiden Alley Cinema (Paducah Film Society) is currently raising money for a new Box Office ticketing system that will allow for the advanced sales and internet sales. If you would like to help, please contact <a href=\"mailto:info@maidenalleycinema.com\">info@maidenalleycinema.com</a>. Thank you!</p>\n </div>\n </div> <div style=\"display: block;height: 20px;line-height: 20px;padding:0 10px;text-decoration:none;background-color:#f9de87;\">\n \n </div>\n </div></div>\n</body>\n</html>",
"text_content": "Maiden Alley Cinema Upcoming Shows and Events\n\n\n\n\n\nThis is a test of the Constant Contact module. I still need to do some more formatting, but it's really close now!\n\n\n\n\n\nNow Playing\n\n\n\nBlue Ruin\n\nStarring Eve Plumb, Kevin Kolack, Amy Hargreaves, Devin Ratray & Macon Blair\nDirected by Jeremy Saulnier\n\nA mysterious outsider's quiet life is turned upside down when he returns to his childhood home to carry out an act of vengeance. Proving himself an amateur assassin, he winds up in a brutal fight to protect his estranged family.\n\n2013 • 1 hour & 30 minutes\nFri, 05/16/2014 - 7:00pmSat, 05/17/2014 - 4:30pm • 7:00pmSun, 05/18/2014 - 4:30pm • 7:00pm\n\nWatch the Trailer\nMore Information\n\n\n\nComing Soon\n\nSat, 5/17/2014\nLower Town Arts & Music Festival OFFICIAL After Party - FRIDAY\nNot Rated\n\nSun, 5/18/2014\nLower Town Arts & Music Festival OFFICIAL After Party - SATURDAY\nNot Rated\n\nFri, 5/23/2014\nLeonard the Band\nNot Rated\n\nFri, 5/30/2014\nTrivia @ MAC: Trivia Harder\nNot Rated\n\nMon, 6/9/2014\nThe Station Agent\n\nWhen his only friend dies, a man born with dwarfism moves to rural New Jersey to live a life of solitude, only to meet a chatty hot dog vendor and a woman dealing with her own personal loss.\n\nRated R\n\nFri, 6/20/2014\nJurassic Park\n\nDuring a preview tour, a theme park suffers a major power breakdown that allows its cloned dinosaur exhibits to run amok.\n\nRated PG-13\n\nFri, 7/18/2014\nBoogie Nights\n\nThe story of a young man's adventures in the Californian pornography industry of the late 1970s and early 1980s.\n\nRated R\n\nWed, 9/17/2014\nDOWN THE HOME STRETCH: Equestrian Paintings by Tim Jaeger VIP Preview and Artist Talk\nNot Rated\n\nTBA\nUnder the Skin\n\nAn alien seductress preys upon hitchhikers in Scotland.\n\nRated R\n\nTBA\nLocke\n\nIvan Locke, a dedicated family man and successful construction manager, receives a phone call on the eve of the biggest challenge of his career that sets in motion a series of events that threaten his careful cultivated existence.\n\n\nRated R\n\n\n\n\nMaiden Alley Cinema. 112 Maiden Alley. Downtown Paducah, KY. 270-441-7007\nTicket prices\n\nChildren & Students \t$4.75 anytime\nSeniors (65 and up) \t$5.25\nShows before 5pm \t$5.25\nAdults after 5pm \t$7.25\n\n\n\n\n\nATTENTION: The Maiden Alley Cinema Box Office opens 60 MINUTES before the first showtime of each day. \nTickets for the entire day go on sale at that time. \nThe Maiden Alley Cinema (Paducah Film Society) is currently raising money for a new Box Office ticketing system that will allow for the advanced sales and internet sales. If you would like to help, please contact info@maidenalleycinema.com. Thank you!",
"email_content_format": "HTML",
"style_sheet": "",
"message_footer": {
"city": "Paducah",
"state": "KY",
"country": "US",
"organization_name": "Maiden Alley Cinema",
"address_line_1": "112 Maiden Alley",
"address_line_2": "",
"address_line_3": "",
"international_state": "",
"postal_code": "42001",
"include_forward_email": false,
"forward_email_link_text": "",
"include_subscribe_link": false,
"subscribe_link_text": ""
},
"tracking_summary": {
"sends": 0,
"opens": 0,
"clicks": 0,
"forwards": 0,
"unsubscribes": 0,
"bounces": 0,
"spam_count": 0
},
"sent_to_contact_lists": [
{
"id": "1893686065"
}
]
}

2 REPLIES 2
Member

Re: Empty text content

Just a follow up; this turned out to be caused by non-ISO-8859 compliant characters.

 

 

Honored Contributor

Re: Empty text content

Hello,

It’s great to hear that you were able to resolve the problem! Non ISO-8859 characters is definitely something to watch out for when creating these emails, as they are unsupported by our mailing systems.

 

If you do have any other questions or issues, please let us know and we will be happy to assist!

 

Best Regards,

Elijah G.
API Support Engineer