Issue in Generate text method .

Jul 6, 2011 at 5:16 AM

I am trying to generate Text from HTML by using generateText method. I 
have used it with two options: 

First I have used it with "tid" and passed the template id but the 
converted text it returns is "\n<<<<\n\n", although i am using the 
template that is being used inn my campaign and has html. Also when I 
go to the plain text message page of my campaign i see this: 

Top Header of the template. 
   Top right of the template----->   Is this email not displaying 
correctly? 
   [1]View it in your browser. 
     Links: 
       1. *|ARCHIVE|* 

Heading 1 

Heading 2 

Heading 3 

Heading 4 

   _Getting started:_ Customize your template by clicking on the style 
editor 
   tabs up above. Set your fonts, colors, and styles. After setting 
your 
   styling is all done you can click here in this area, delete the 
text, and 
   start adding your own awesome content! 

   After you enter your content, highlight the text you want to style 
and 
   select the options you set in the style editor in the "styles" drop 
down 
   box. Want to [2]get rid of styling on a bit of text, but having 
trouble 
   doing it? Just use the "remove formatting" button to strip the text 
of any 
   formatting and reset your style. 
     Links: 
       2. http://www.mailchimp.com/kb/article/im-using-the-style-designer-and-i... 

Heading 4 

   _Repeatable content blocks:_ Repeatable sections are noted with 
plus and 
   minus signs so that you can add and subtract content blocks. You 
can also 
   [3]get a little fancy: repeat blocks and remove all text to make 
image 
   "gallery" sections, or do the opposite and remove images for text- 
only 
   blocks! 
     Links: 
       3. http://www.mailchimp.com/kb/article/how-do-i-work-with-repeatable-con... 

Heading 4 

   _Repeatable content blocks:_ Repeatable sections are noted with 
plus and 
   minus signs so that you can add and subtract content blocks. You 
can also 
   [4]get a little fancy: repeat blocks and remove all text to make 
image 
   "gallery" sections, or do the opposite and remove images for text- 
only 
   blocks! 
    [5]follow on Twitter | [6]friend on Facebook | [7]forward to a 
friend 
   _Copyright © *|CURRENT_YEAR|* *|LIST:COMPANY|*, All rights 
reserved._ 
   *|IFNOT:ARCHIVE_PAGE|* *|LIST:DESCRIPTION|* 
   _Our mailing address is:_ 
   *|LIST_ADDRESS|**|END:IF|* 
   *|IF:REWARDS|* *|REWARDS_TEXT|* *|END:IF|* 
    [8]unsubscribe from this list | [9]update subscription preferences 
     Links: 
       4. http://www.mailchimp.com/kb/article/how-do-i-work-with-repeatable-con... 
       5. *|TWITTER:PROFILEURL [$format=text]|* 
       6. *|FACEBOOK:PROFILEURL [$format=text]|* 
       7. *|FORWARD|* 
       8. *|UNSUB|* 
       9. *|UPDATE_PROFILE|* 

Secondly i have used the "html" option and copied the complete html 
from the template but the same result. 

I am using .NET and i have used all other methods of the API 
successfully. Can anybody help me what could be the reason? 

Thanks

Coordinator
Jul 6, 2011 at 10:20 AM
Edited Jul 7, 2011 at 6:56 AM

It works for me:

 

 

var mc = new MCApi("", false);

string text = mc.GenerateText(Campaign.ContentType.TID, 1);