Get recipient email address from the email token

I have the following issue.
I am not able to extract the email id from the following “received message” email token:
%recipient% (or %sender%)

For the returned content is

Could you please tell if it is possible to extract only the mail id with a token ?

Thanks for your support


​Please send more details about this question, and we will do our best to help you.

Hi @andrii thanks for your reply.
In Hivepress email settings with WP I am trying to find a way to extract only the mail id of the recipient.

For example in the booked confirmed (Vendor) usecase here are the available token:

None of these token is returning the email ID directly

Can you explain how to get it please ?


Please try to use these tokens ​I hope this is helpful to you.

Hi thanks for your reply.
Indeed I have already tested this token but it returns the following string instead of just extracting the email \

<a href=""></a>

I need to use an API that takes only an email ID as input field not the full <a ref=></a>


Sorry for the confusion, but unfortunately, there’s no such feature - all the tokens are replaced with the formatted values, not raw values (e.g. if it’s a number it’ll be formatted with separators, emails are formatted with “mailto” links).