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

Issue with custom email template

$
0
0

Hi,

I reverted back to using the User Registration Default. Now when using this, I am also getting a blank message body, "[No Subject]" for subject.

This is what I'm using in my user.register.post.post_process event script.

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

var user = event.request.payload;

var emailPayload = {
    template: 'User Registration Default',
    to: {
        name: user.first_name,
        email: user.email
    }
};

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

Regards,
Allen


Viewing all articles
Browse latest Browse all 5028

Trending Articles