header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

Sending a Triggered Email with Code

1 min
Visit the Velo by Wix website to onboard and continue learning.
Triggered Emails allows you to create a template for emails that you can send to your Contacts or Members, using code. Before sending the email, your code can inject information into the template to personalize it with any data that is available in your page code. 

The general flow is to paste the generated snippet into your code where you want the email to be sent. Then edit the snippet so that it uses the ID of the currently logged-in member or the newly created contact, and the values you want to insert for the variable placeholders.