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
russian-dima 18:58:02

If you want to write a comment, than you have first to log-in!

24.8.2020
russian-dima 17:58:34

New logo? ^^

22.8.2020
russian-dima 17:58:16

You again xD

22.8.2020
arthurvalatin 16:19:33

Hi

21/08/2020
mr-money-man 00:30:40

As you can see in this version, i tried to implement more functions. You will fi
nd the first ones, when you go into sthe OPTIONS-MENU.

8.8.2020
mr-money-man 00:29:32

It is much more comfortable. ^^

8.8.2020
mr-money-man 00:29:12

You can use also the combinations-key on your key-board (TAB+ENTER) to send a me
ssage.

8.8.2020
mr-money-man 00:28:39

Everytime when you send a message, your Comment-Box will be REFRESHED (to see if
you got new MESSAGES).

8.8.2020
mr-money-man 00:27:49

IIt works almost like a CHAT

8.8.2020
mr-money-man 00:27:29

You can use the one in the footer.

8.8.2020
barbarabessals2 19:24:37

well, now i'm using the second one

07/08/2020
mr-money-man 00:23:00

Which one of the two comment-boxes do you use?

8.8.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