Documentation

Installation | JS

To get started with ekiliRelay, use npm to install and include it in your project.

  1. Install the mailer using npm:
  2. npm i ekilirelay
  3. Import the mailer into your project:
  4. import EkiliRelay from 'ekilirelay';
  5. Get you api key API KEY
Usage | JS/TS

After including the mailer, you can start using ekiliRelay to send emails. Here's a quick example:

//Simple js implementation
const sendBtn = document.getElementById("send"); //some button
import EkiliRelay from 'ekilirelay'; //importing EkiliRelay

// Initialize the mailer  
const mailer = new EkiliRelay('your-api-key'); //your-api-key goes here

sendBtn.addEventListener("click", () => {
// Send an email
mailer.sendEmail(
    'receiver-email@example.com', 
    'Test Subject', 
    'This is a test message.', 
    'From: senderName <sender-email@example.com>')
  .then(response => {
    if (response.status === 'success') {
      console.log('Email sent successfully.');
    } else {
      console.log('Failed to send email: ' + response.message);
      console.log(response);
    }
  })
  .catch(error => {
    console.log('Error:', error);
  });
});

This simple example demonstrates how to initialize the ekiliRelay mailer and send an email using JavaScript or TypeScript.

FAQ | JS/TS
How do I get started with ekiliRelay?

Simply download the mailer, include it in your project, and follow the usage instructions.

Is ekiliRelay really free?

Yes, ekiliRelay is completely free to use.

Can I customize the email template?

Yes, you can customize the email body as per your requirements using HTML and CSS.

Contact | JS

If you have any questions or need further assistance, please reach out to us: