My goal is to create a Dynamic Sender profile based on any filter data extension (from sync) that would have the same "logo" field to determine the from name and from email. With this being a common field, I would like to avoid doing a data extension lookup so that it will work with future filtered data extensions.
I am also wondering if there is a way to use "Custom Reply Mail management", "Use specified information" address dynamically. I am assuming you could use a similar method as the From Email.
I haven't had much luck with finding helpful documentation. This answer seems to be the closest I have gotten.
I created a Content Block, HTML type with "sender-profile" as the customer key.
%%[
var @fromName, @fromEmail
if AttributeValue('LogoField') == 'Logo1' then
set @fromName = 'Name 1'
set @fromEmail = '[email protected]'
elseif AttributeValue('LogoField') == 'Logo2' then
set @fromName = 'Name 2'
set @fromEmail = '[email protected]'
else /* fallback if neither evaluates to true */
set @fromName = 'Name 1'
set @fromEmail = '[email protected]'
endif
]%%
However, when I did the below step in the "Sender Profile" it disappears from the dropdown selection upon send. The "Send Classification" says, a message in a yellow bar which says, "The sender profile originally selected has been deleted or is no longer verified for sending. Please select a different sender profile." All email addresses have been verified in the "From Address Management".
- Add AMPscript to your Sender Information fields (below code),
From Name:
%%[ContentBlockByKey("sender-profile")]%%%%=v(@fromName)=%%
From Email:
%%[ContentBlockByKey("sender-profile")]%%%%=v(@fromEmail)=%%
The question I used this from seems to be possibly based upon triggered send as suppose to single. However I am wondering the best method to use for single send that is based off of a field, not an actual field that exists that contains the "From email" or "From Name" listed.
Any help or suggestions would be greatly appreciated. I apologize if my post is not in the correct format, I am trying to improve.