Hi Sanford,
I have never done a velocity script token. I chose the Email Script token option and pasted in the copy you provided in your link. I changed the 7's to 30's. Does this make sense? I added the token to my email and it didn't work.
Velocity Script:
$calNow.add($calConst.DATE,30)
#set( $FRIENDLY_24H_DATETIME_WITH_FRIENDLY_TZ = "MMM dd, yyyy HH:mm z" )
Our promo expires 30 days from today, which is
${date.format(
$FRIENDLY_24H_DATETIME_WITH_FRIENDLY_TZ,
$calNow,
$defaultLocale,
$defaultTimeZone
)}
Email test in Edit mode:
Your membership expired on {{lead.Membership End Date:default=end date}}; however, if you renew before {{my.30 Day Grace Period:default=edit me}} we'll be happy to extend your renewal rate. Don't miss out on valuable information and significant discounts on training and events!
Email test in preview mode with View by: Person email address added:
Your membership expired on 2022-01-22; however, if you renew before $calNow.add($calConst.DATE,30) Our promo expires 30 days from today, which is ${date.format( $FRIENDLY_24H_DATETIME_WITH_FRIENDLY_TZ, $calNow, $defaultLocale, $defaultTimeZone )} we'll be happy to extend your renewal rate. Don't miss out on valuable information and significant discounts on training and events!
I want the script token to add the date 30 days from the day I send the email (or 30 days past the membership expired date). I'll be sending this email each day to all those whose memberships expired that day.
... View more