Mailing System

Information

Infrastructure for sending out mails is provided in the EntityRepo's Infrastructure object.

Mailing System

Sending emails -

  • Using the interface exposed on the Infrastructure object -

This is accessed as -

this.entityRepo.infrastructure().mailer.sendMail(
{
to: recipient,
subject,
html
},
(error, result) => {}
);
  • Using the sendMail library -

This is accessed as -

this.libs.sendMail.call(this, recipient, subject, html, (error, sent) => {});