I am trying to send emial via API as show documentation https://backendless.com/docs/js/email_send_basic_smails_api.html
I have set SMTP settings properly (the TEST passed).
When I try to send a email message I got response with status SCHEDULED.
What does mean status SCHEDULED? How to change the SMTP settings to immediate email sending?
Here is my TypeScript code to send an email:
public sentOrder() {
console.debug('Sending Order email');
const body: Backendless.Bodyparts = {
textmessage: null,
htmlmessage: 'Check out this <b>awesome</b> code generation result'
};
Backendless.Messaging.sendEmail(
'Email from Backendless', body,
['mato.krajcir@gmail.com'],
['assets/bmb/product/MarikaKlasik/BMB MARIKA KLASIK.jpg']
).then(response => {
console.debug('Order email sent: ' + response);
this.router.navigate(['../confirmation']);
}).catch(error => {
console.debug('Order email error during sendig' + error);
});
}