Can I send an email using a VEEML API?

Viewed 10

I need to send emails from a dataapp and from some data workloads but I don't have any emailing provider available.

1 Answers

Use the endpoint /sendemail2 to send an email using Veeml.

You only need to get previously a valid authentication token (see the “login” api or cookie).

$.ajax({
type: "POST",
url: « //the-url.ofyour.portal/sendemail2",
data: { "jsonstring": JSON.stringify(_jsonstring) },
success: function (data) {
       console.log(data);
}
});

With _jsonstring as :

{
"token":"", -> authentication token
"subject":"", -> subject of the email
“html”: “”, -> html code of the email 
"text": “” -> Text of the email
}
Related