Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

Dynamic sender profile not working - From address

$
0
0

I'm trying to set up a dynamic sender profile but something is wrong.

I've followed this solution step by step: Sender Profile AMPscript

But it doesn't work. Problem seems to be the from address, since the sender profile does not appear in the preview and test drop down list any longer as soon as I set a dynamic from address. If I set it static, with a verified address, and use the dynamic block for the from name only, the sender profile appears in the dropdown list again, but the email fails to arrive.

I've created a very simple dynamic block:

%%[ var @fromName var @fromAddressset @a = 1set @b = 2if a == 1 then set fromName = "From Name 1" set @fromAddress = "firstEmail@email.com"else set fromName = "From Name 2" set @fromAddress = "secondEmail@email.com"ENDIF]%%

I changed the email addresses for privacy purposes, but the ones I am using are correctly verified.And then added ampscript to my sender info fields:

%%[ContentBlockByKey("sender-profile")]%%%%=v(@fromName)=%%%%[ContentBlockByKey("sender-profile")]%%%%=v(@fromAddress)=%%

I can't see any error in the code. Is there anything I am missing?

Any help would be much appreciated.

Thanks


Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>