Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

Need help with user.register.post.post_process script

$
0
0

Hello @allensandiego .

I just realized that you are using user.register.post.post_process and not system.user.post.post_process, I'm sorry for the confusion.

In this case, you must follow the following steps:
I believe that steps 1 and 2 have already been made by you

1 - Create and configure role to Open Registration

2 - Enable Open Registration and assign created role

3 - Configure event script user.register.post.post_process

var lodash = require("lodash.min.js");

var user = event.request.payload;

var emailPayload = {
    subject: "Welcome",
    body_html:  "{name},<br/><br/>You have successfully registered!",
    from_name: "Allen Sandiego",
    from_email: "email@domain.com",
    name: user.first_name,
    to: {
        name: user.first_name,
        email: user.email
    }
};

platform.api.post("email", emailPayload);

Best regards.


Viewing all articles
Browse latest Browse all 5027

Trending Articles