I am trying to set a different reply-to email for each country. I found out that I should use the lookup function in this case so I must insert in the “From Email” field in the custom reply email address the following code:
But I tried to replace the value "GB” by a variable by using the Set function in order to define the countrycode variable (because inserting “GB” is the same like inserting the reply-to email for the clients from GB, so it doesn’t make sense for me), but it didn't work.
%%[SET @countrycode = countrycode]%% %%=Lookup("ReplyInformation","ReplyEmailAddress","CountryCode", countrycode)=%%
Furthermore I should use only Data Extension fields in the lookup function, not profile/preference center's attributes. Do you have any suggestions regarding this matter?