How to add Product Information in Mailto liquid

I’ve added a Mailto link to request a quote that automatically opens an email with a subject line and body text.

Is there a way to add the variable Product Name in the subject line? Another option would be to include the product details in the body, which ever would be easiest.

Right now I have the mailto link set-up as a liquid box on the product page. Example below:

Request Quote

Appreciate any help!

Hi @SamaraShuter ,

You can add the product name in the subject line by calling the product.title variable.

You can replace the below given code instead of you current code and can make changes based on your requirement.

[Request Quote](mailto:example@gmail.com?subject={{ product.title }}&body={{ product.description }})

I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!

Regards,
Sweans

1 Like

This worked perfectly, thank you!