Any way to create a link that sends the currently-logged-in member an email to themselves?

We have a private content section and need to be able to create a link that sends the currently-logged-in member an email to themselves.

Documentation on pulling contact properties is limited and I have not been able to successfully get email by modifying the only contact-specific data pull in the documentation:
{% if module.requesting_contact %}
{% set membership_contact = crm_object(‘contact’, request.contact.contact_vid, ‘firstname,lastname’) %}
Hi, {{ membership_contact.firstname }} {{ membership_contact.lastname }}
{% endif %}

The only place I can find that even mentions this is a single forum post from five years ago and the answer was basically “HubSpot doesn’t allow things like that because it’s a security risk, so even though this use is not a security risk, we don’t allow it.”

Is there any way to pull the currently-logged-in member’s email or some particular line of code that can send the user an email?

Hi, @KSmithIllumine8 :waving_hand: Thanks for your question. You are correct that there is not a documented way to accomplish your goal. I understand why this would be useful for your use case, and you’ll need to look at alternatives.

One workaround idea could leverage forms and workflows, allowing a user to submit a form that triggers a workflow to send an automated email to the user.

Best,

Jaycee