Search code examples
emailexacttargetampscript

Get Email ID or Name from AMPscript


I'm new to exacttarget and ampscript so I'm sorry if this is trivial. I've tried searching the help documentation to no avail.

I'd like to include the email name or ID as metadata in an email.

Is there a way to retrieve this information at send time to include in the email?


Solution

  • Yes! There's a personalization variable for that.

    Inside an AMPScript block you can reference it with: emailName_

    Outside an AMPScript block you can reference it like this: %%emailName_%%

    More info here: Personalization Strings