Contact Form on dynamic page

I need some help with a contact form on a dynamic page, i have a member profile dynamic page set up and im trying to add a contact form to it, i have the user inputs set up already i need help with the code to grab the correct email of the profile you are on and send the email to it.

thanks in advance!!

The getCurrentItem() function returns an object whose key:value pairs are the field keys and field values of the current item, including all hidden fields.
Fields that do not have a value are omitted from the returned object.

Read more about getCurrentItem(): https://www.wix.com/code/reference/wix-dataset.html#getCurrentItem