AMPscript Personalization Strings Related to the Recipient

AMPscript includes several strings that you can use to personalize the messages that you send to your subscribers. For a complete list of supported strings, see Personalization Strings in Email Studio.

Commonly Used Strings

This table shows some of the most commonly used strings related to the message recipient.

String Description Example
_carrierId An ID associated with the subscriber's mobile carrier. Based on the profile attribute "CarrierID." 4
_channel The messaging channel associated with the contact, as entered in the "Channel" field. Mobile
_city The city associated with the contact, as entered in the "City" field. Seattle
_createdBy The entity that created the contact, as entered in the contact "CreatedBy" field. 9230589
_createdDate The date on which the contact was created, contained in the contact CreatedDate field. 2023-08-05 13:41:59
_country_code Country code associated with the contact, contained in the contact CountryCode field. US
_emailaddr The subscriber's email address. pooja@example.com
_firstname The subscriber's first name, as entered in the profile attribute "Full Name." This string extracts the word before the first space. Pooja
_fullname The subscriber's full name, as entered in the profile attribute "Full Name." Pooja Chatterjee
_lastname The subscriber's last name, as entered in the profile attribute "Full Name." This string extracts the words after the first space. Chatterjee
_messageTypePreference The subscriber's text or HTML preference. TEXT
_mobileNumber The contact mobile number, as entered in the "MobileNumber" field. 12065550042
_modifiedBy The last user to modify contact information, contained in the contact ModifiedBy field. 39958224
_modifiedDate The last time a process modified the contact information for the subscriber. 2023-08-05 11:31:42
_priority The priority to use when sending a message to a contact, contained in the contact "Priority" field. 1
_source The source of contact information, contained in the contact "Source" field. Mobile Opt-In
_sourceObjectID The object ID of the source of contact information, contained in the contact "SourceObjectID" field. 4
_state The state associated with a contact, contained in the contact "State" field. WA
_status The send status associated with a contact, contained in the contact Status field. Possible values: <ul><li>-1: Unspecified</li><li>1: Active</li><li>2: Bounced</li><li>3: Held</li><li>4: Unsubscribed</li></ul> -1
_UTCOffset The time offset from UTC associated with a contact, contained in the contact "UTCOffset" field. -8
_zipCode The ZIP code associated with a contact, contained in the contact "ZipCode" field. 98105

See Also