You can to send different Components in a Mailing to different recipients using Target Groups to determine who gets which Components. To personalize your Mailings using VBScript, you must make modifications to the Page Template.
About this task
Note: You might not use Component Presentations in your Template, but instead choose to visualize Components yourself by surrounding the fields of the Components with HTML code. If you visualize your Components without Component Presentations, you cannot use
GetTaggedCP(). Instead, you can use the
GetTGStartTag() and
GetTGEndTag() methods. For more information, see
Outbound E-mail Script Extension API.
Procedure
- To make a Page Template usable for personalization, access the Page Template.
- Find every instance of a Component Presentation being written to output. Normally, such a call would look like this:
WriteOut ComponentPresentation.Content
- Replace each of these instances with a call to a function called
OutboundEmail.GetTaggedCP(), so that the line reads:
WriteOut OutboundEmail.GetTaggedCP(ComponentPresentation)
- Save and close the Page Template.