top of page
Crumpled Fabric

3

How to Send Triggered Emails

Click URL to copy

Jul 24, 2022

3 min read

WIX Ideas Team

Tags: WIX Data Triggered Email WIX Automations Simple Form Contact Form



Triggered Emails is an advanced, powerful tool for Velo by Wix users. With Triggered Emails you can send your visitors personalized emails in specific scenarios.

First, set up the Triggered Email and add Variables to include personalized information. Then you'll receive a code snippet to be added in the Velo Code Panel.


Note: The statistics for Triggered Emails are based on every time an email is sent, including test emails that you send to yourself. This is different from the statistics for Email Marketing that are based on emails sent to unique contacts. Therefore, the statistics for Triggered Emails may seem inflated compared to Email Marketing statistics.

Step 1: Access the Triggered Email dashboard

  1. In your Velo Sidebar, select the Developer Tools tab.

  2. Under the Automation section, select Triggered Emails.


Step 2: Create an email
  • (If this is your first time creating a Triggered Email, click Get Started .)

  • Click + Create New. This takes you to the Triggered Email Editor.

    • Or, click the Show More icon and click Duplicate if you want to duplicate an existing Triggered Email and then make edits.

  • On the Triggered Email Editor, design your email:

    1. Edit the provided content by clicking an element, customizing, or deleting it.

    2. Click the Add icon on the left side to include additional elements.

    3. Click the Background icon on the left side to customize the background.



Step 3: Use Variables to insert specific information

Variables make a Triggered Email truly unique to its reader. The variable is a placeholder that will ultimately be replaced by a real value that you define in the code. The name in the placeholder should be meaningful to you so that you can identify it later.

  1. Click a text element and then click + Add Variable .

    • Variable name: You can name a variable anything you want, but it should be meaningful to you so you can identify it later.

    • Under Fallback value, write a replacement text that appears in case you're missing that specific piece of data. (For example, if you don't have your user's name, you can add "Customer" or "Buddy", depending on what fits your situation best.)

      1. Please note that fallback values may be applied in the body of an email, but not in the subject line.


  • Click Add.



Step 4: Get your Triggered Email's code snippet

If at this stage, if you click Save as Draft, you are redirected back to the Triggered Email dashboard. To proceed to the code snippet, click Save & Publish. To generate the code snippet:

  • Click Save & Publish on the top left.

  • If you have not already done so,

    1. Click Add Details to choose how your name appears, and the reply-to address.

    2. Click Save.

    3. You may be asked to confirm your email address. If so, enter the confirmation code from the email in your inbox and click Confirm.

  • (Suggested: Change the email ID by clicking the ID listed and replacing it.)



  • Choose who you want to receive your email:

    • Email New Contacts when someone signs up.

    • Email Site Members for existing members.





  • Click Copy in the text window where the code snippet appears.

  • Click Got It to close the window.


Step 5: Add the code snippet to an event on your site

Click here to learn how add the snippet in your Velo Panel.


Code



Leave a comment (2)

Thanks for leaving a comment🎉

ahmed

ahmed

May 19, 2024

wix form data

Hi i need your help also in wix form submission

the problem is that some fields are generated when $w.onReady(function () { like day & date and when i choose the student name i get the phone number from database .

and the form save only the field u fill it by ur self like input or dropdown

Reply

Walter Odibi

Walter Odibi

January 20, 2000

bromar

bromar

Sep 29, 2023

Love the tutorial!!!

You are truly great at creating these instructional videos!! Thank you! I am having trouble figuring out . . 'the triggered email' . . it is not being sent to the user submitting the form, the form and the email to the admin works great. . Could you point me to where this might have already been addressed? or any other help? On a second note. .the submit button success/failure message will go back to the default message once it's connected to the data set(I couldn't figure that out either. )

Reply

Walter Odibi

Walter Odibi

January 20, 2000

kaan

kaan

Jun 4, 2023

wishlist and rating system

hello sir I try today 2 hours but not working if you want I pay money can you do this 2 ( wishlist and rating star) system please I send to you invaid

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Hi there, you can contact me here using the in-app chatbox

Waqas

Waqas

Apr 16, 2023

Triggered Email Backend

Hi mate please can you send email by backend

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Hi Waqas, there isn't a backend code for this tutorial. The emails will be sent from the client-side.

Ghan

Ghan

Dec 29, 2022

Great Tutorial

Hi !

First of all, I want to thank you for your great tutorials, they helped us a lot with the coding.
But I still need your help, if you don't mind. I have based on Save Calculated Field using Wix Data Hooks Codes, to code my form . but the problem is I don't know why the code only reads the computation for "week2" computation and not the "weeks"

here is the code

I also did a separate column in the dataset where the chosen datas for both fields will be placed.

$w.onReady (() => {
$w("#Person").onChange(() => {
$w("#weeks").onChange(() => {
$w("#week2").onChange(() => {
let person = Number($w("#Person").value);
let weeks = Number($w("#weeks").value);
let week2 = Number($w("#week2").value);


$w("#totalLabel").show();

$w("#totalLabel").text = `"${String(weeks * Number(person))}페소"`; //DESIGN YOUR MESSAGE
$w("#totalLabel").text = `"${String(week2 * Number(person))}페소"`; //DESIGN YOUR MESSAGE

});
});
});

});

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Hi there, thanks for your comment. I see why this is a problem. The onChange() function seems wrong in combination.

To combine onChangeFunctions use this method

$w("#Person, #weeks, #weeks2").onChange(() => {

//code here

});

Walter

Walter

Aug 8, 2022

More Details? Watch video

Hi, you can click here to watch the video https://www.youtube.com/watch?v=9bx7-nBeZ5c

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Walter

Walter

Jul 11, 2022

For you

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Walter Odibi

Walter Odibi

Apr 18, 2022

Awesome Feature

This tutorial shows you how to display views on your Wix repeater.

📺WATCH VIDEO HERE https://www.youtube.com/watch?v=Iz7SdaCSdXg

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Walter Odibi

Walter Odibi

Apr 18, 2022

Amazing tutorial

This amazing tutorial will show you how to a comment section to your WIX dynamic page.

📺WATCH VIDEO HERE https://www.youtube.com/watch?v=f8-vJQFNZ_c

Reply

Walter Odibi

Walter Odibi

January 20, 2000

Walter Odibi

Walter Odibi

Apr 10, 2022

Great Feature🎉

This amazing tutorial will show you how to add a visitor view counter to your WIX dynamic page.

🚩MORE TUTORIALS https://www.wixgenius.com/wix-tutorials

Reply

Walter Odibi

Walter Odibi

January 20, 2000

RELATED TUTORIALS 🚀

Count Wix Dataset Result

Count Wix Dataset Result

Count the total items found in your wix dataset displaying contents on your repeater

bottom of page