Real Estate Website - Sending emails to sellers

Hello!

I have made a real estate website where sellers can list land they own and interested buyers can contact them about their listing. Here’s what I have set up:

-Members Area
-Database for the listings - entries in this database will be user generated. I have a form connected to the database to collect the information.
-Dynamic pages that show the listings to the public.

Here is my question: I would like for a person who is interested in the listing to be able to contact the seller directly. I don’t want to put the sellers contact information just on the page. Is there a way I can connect a button to the sellers email address in the database or set up a form that will connect to the sellers email address?

As of right now, I think my only options are to display the sellers contact information (not ideal) or act as middle-man and have an interested person contact me and I forward it on to the seller (also not ideal). We don’t have too many listings yet, but once we do, being the middle-man won’t be feasible.

Is there another solution that I don’t see?

I greatly appreciate any help or suggestions anyone has. Thank you for taking the time to consider my question.

-Lana

Hi,

If the listing is a dynamic page then you can add an ’ Email ’ column to the listing’s database. Record the email of each seller (of the listing)

On your dynamic page’s datasetReady function do this to create a global variable:

let itemObj = $w("#dynamicDataset").getCurrentItem();

Then using this example send an email to the seller by setting the recipient email to itemObj.email

Or

Simply connect a hidden text element to the dataset’s ‘Email’ field and use that

Good Luck.

Hi Shan,

Thank you SO MUCH for your response! I am going to try what you suggested and update on how it goes. I just wanted to thank you for your rapid and detailed response!