All you need to do now is to search the email's content and replace any occurance of [RecipientName] with $RecipientName.
So if I take the coupon feature as an example:
PHP Code:
//Replace coupon keyword in text message with new coupon code
$text_message = str_replace($coupon_key, $new_coupon_code, $text_message);
//Repeat for html message
$html_message = str_replace($coupon_key, $new_coupon_code, $html_message);
It would be:
PHP Code:
//Replace [RecipientName] keyword in text message with recipient's name
$text_message = str_replace($RecipientNameKey, $RecipientName, $text_message);
//Repeat for html message
$html_message = str_replace($RecipientNameKey, $RecipientName, $html_message);
Just make sure the above code goes after the text and html messages are formed.
Bookmarks