Hi guys, new here - I’ve just smashed out a mini database of Motorcycles. Each ‘model’ ends up on its own Dynamic Page (this is awesome) but what I need to do, is to be able to create an ‘email enquiry button’ that would reference the ‘Model’ (Title in my dataset) (or page URL) in the Subject line of the email. So when the email comes through it would be ‘Can I please have more info on (ModelNameHere)’
Can this be done? I’m not having much luck trying to figure it out.
Many thanks in advance.
Yes, you can do it a few ways. You can either create a ‘share by email’ function. For example, they click a button and it populates the title / subject line of the email, it populates the receiver email address and then they can fill out the rest and click send. (Tutorial: https://www.youtube.com/watch?v=cb31PIBP5LQ )
Or you can create a form right on the page that sets certain values based on the data they are viewing, then trigger an email notification to you (either by using Triggered Email (aka Wix ShoutOuts) or another 3rd party like SendinBlue or SendGrid.
Thankyou immensely Code Queen Nayeli, I’m pretty sure I have it all figured now except for the Email client automatically opening on ‘click’. If I right click and and ‘Open link in new tab’ it opens in my email as it should and has all the parameters I need already filled. Any chance you could see what I’m missing or can suggest a fix.
Cheers
Was just thinking, would I need to have ‘The disable Right Click app’ on the site also?
Fixed it - Solved.
Turns out I do not need an export function when using .link.
Sweet - moving on with the rest. Cheers
import wixLocation from 'wix-location';
import wixCRM from 'wix-crm';
let path = wixLocation.path
$w.onReady(function () {
$w("#mailShare").link = `mailto:youremail@here.com?subject=Can I please get some info on the ${path}`;
});