0

Send a text to capture the emailaddress and wrote the user response received into DE (smsprofilecapture) and found something like user12345gmail.com instead of [email protected]. Any ideas why this happened !

%%[
VAR @msg,@email
SET @email = [MSG(0).NOUN(0)]
IF IsEmailAddress(@email) == ‘true’ THEN
    UpsertData('SMSProfileCapture', 1, 'MobilePhone', MOBILE_NUMBER, 'EmailAddress', @email)
    
    SET @msg = "Thank you for your information."

ELSE
    SetSmsConversationNextKeyword("9XXXX",MOBILE_NUMBER,"GETEMAIL","MOBILECONNECT")
    set @msg = "Sorry, that doesn’t seem right. Please try again. What is your email address?
    Text HELP for help. Text STOP to stop."
ENDIF
]%%
%%=v(@msg)=%%

0

You must log in to answer this question.

Browse other questions tagged .