Skip to:
Content

BuddyPress.org

Opened 8 years ago

Last modified 8 years ago

#7044 closed enhancement

Emails: Passing an email address to `bp_send_mail()` does not render `{recipient.name}` token — at Initial Version

Reported by: r-a-y's profile r-a-y Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.0
Component: Emails Keywords: has-patch commit
Cc:

Description

For the bp_send_email() function:

If you pass a user ID:

bp_send_email( 'activity-at-message', 1, $args );

The {{recipient.name}} token will return the name of recipient.

However, if you pass an email address:

bp_send_email( 'activity-at-message', 'test@example.com', $args );

The {{recipient.name}} token will be empty.

Attached patch fixes this.

Change History (1)

@r-a-y
8 years ago

Note: See TracTickets for help on using tickets.