I have put the AMPScript in the template. After that I am triggering email programmatically. I am receiving the email, but without the data from AMPScript.
I am passing the attribute while sending an email. The data will be stored in Data extension. But it does not print in the template.
%%[ SET @FirstName = AttributeValue("First Name") SET @FromEmail = Lookup("TriggeredSendDataExtension - 20160917_111231", "FromEmail", "First Name", @FirstName) IF EMPTY (@FromEmail) THEN SET @FromEmail= 'Not able to lookup FromEmail' ENDIF SET @FromName= Lookup("TriggeredSendDataExtension - 20160917_111231", "FromName", "First Name", @FirstName) IF EMPTY (@FromName) THEN SET @FromName= 'Not able to lookup FromName' ENDIF
<p> %%=v(@FromEmail)=%% %%=v(@FromName)=%% </p>
What could be the issue? How to resolve the same?