top of page

Triggered-Email

Index

CLOSE.png

For this example you have to register first and log-in.​

Triggered-Emails (in this example) can only be sent to registered (logged-in) users.

Send-eMail

Triggered-Email

After submitting button, you will get a TEST-E-mail, this is a simulation of the TRIGGERED-Email-function.

Please do not forget to check your SPAM-FOLDER!

CODE

CODE

CLOSE.png

import wixUsers from 'wix-users';

import wixCrm from 'wix-crm';


 

$w.onReady(function () {   });

 

//-----------------------------------------------------------------------------------------

export function button1_click(event) {send_Email ()}

//-----------------------------------------------------------------------------------------

function send_Email (parameter) {

    let userId = wixUsers.currentUser.id;

    let value1 = "russian-dima@hotmail.de"

 

    console.log(userId)

    console.log((value1))

 

    wixUsers.emailUser("test", userId, {

        "variables": {

        "variable1": value1,

        "variable2": "value for variable2"

        }

    } )

    .then( () => {

        console.log("Triggered email sent");

    } )

    .catch( (err) => {

        console.log(err);

    } );

    console.log(("Job done!"))

 

    $w('#BOX1').show()

    $w('#TXT1').text="Triggered-Test-Mail succsselfully sent. Delivery in about 15sec."

    setTimeout(()=>{$w('#BOX1').hide()},3500)

}

Comment-Box

CLOSE.png

Version-1.0

Under_Construction.png

Leave a comment. . .

Arrow.png

General-Settings

ON                 OFF

Show Text-Length

ON                 OFF

max. Text-Length

ON                 OFF

Show Key-Press

ON                 OFF

Show Key-Code

ON                 OFF

Show Total-Count

Character-limit

Load default settings
Save
mr-money-man 00:22:20

You can use also the CHAT if you want

 

8.8.2020
mr-money-man 00:22:01

Welcome back on my site ^^

8.8.2020
barbarabessals2 19:21:42

hello!

07/08/2020
mr-money-man 23:52:46

Hello Barbera ^^

7.8.2020
arthurvalatin 07:33:29

hello

04/08/2020
russian-dima 00:15:35

You can also set your own CHARACTER-LIMITATION in the SETTINGS but at moment 240
-characters are the max.

30.7.2020
arthurvalatin 07:13:39

hello!

30/07/2020
russian-dima 00:11:43

PRESS "TAB+ENTER" and you will see how it works without the button xD

30.7.2020
russian-dima 00:10:23

For example it is possible to send messages without to click everytime with the
mouse onto the button xDD

30.7.2020
russian-dima 00:09:45

You will find a lot of hidden intergrated stuff in my little comment/chat-tool ^
^

30.7.2020
arthurvalatin 07:09:33

Hello!

30/07/2020
russian-dima 00:08:44

Check it out! It almost works like a CHAT-BOX

30.7.2020
Seite 1 von 1
Design
Settings
About
CLOSE.png
Leave a comment, or start a chat.

Post-Comment

- - -

Pressed-Key

- - -

Key-Code

Text-Length

- - -

max. Text-Length

- - -

Number of Comments

- - -

designed & developed by russian-dima

Write a comment
bottom of page