I have an email that pulls the contents of an RSS Feed and places it in the body of an email. This is done directly in the email rather than a content area.
This is all working just fine but I'd also like to have the subject of the email include the top headline of said RSS feed.
I've created a content area with the following code for the subject line:
%%[ Var @xml, @titles, @title, @cnt Set @xml = ContentAreaByName("my contents\RSSParse\RSSParse") Set @titles = BuildRowsetFromXML(@xml,"//item/title",1) If RowCount(@titles) >= 1 THEN SET @rows = 1 ELSE SET @rows = RowCount(@titles) ENDIF IF @rows >= 1 THEN for @cnt = 1 to @rows do Set @title = Field(Row(@titles,@cnt),"Value") ]%% %%=v(@title)=%% %%[ NEXT @cnt ENDIF ]%%
The subject line contains the following call:
When I test send the email, the subject line pulls a title fine. However, on actual sends, the subject line is blank.