Im trying to use pretty email but the documentation is not really clear how to call it.
here is how I’m calling it but in the doc its another way both not working for me.
PrettyEmail.send({ 'call-to-action'
to: emailData.email
subject: 'You got new message'
heading: 'Your friend sent you a message'
message: 'Click the button below to read the message'
buttonText: 'Read message'
buttonUrl: 'http://mycompany.com/messages/2314'
});
Does anyone have a generic example of how to call this.
its like this in the doc
PrettyEmail.send ‘call-to-action’,
to: 'myuser@myuser.com’
subject: 'You got new message’
heading: 'Your friend sent you a message’
message: 'Click the button below to read the message’
buttonText: 'Read message’
buttonUrl: 'http://mycompany.com/messages/2314’
messageAfterButton: “I come after the button!”