# emailjs.init

This method allows the setup of Options for the application globally. The configuration should happen before any send email method is called.

# Syntax

emailjs.init(options);

# Code Example

emailjs.init({
  publicKey: 'YOUR_PUBLIC_KEY',
  // Do not allow headless browsers
  blockHeadless: true,
  blockList: {
    // Block the suspended emails
    list: ['foo@emailjs.com', 'bar@emailjs.com'],
    // The variable contains the email address
    watchVariable: 'userEmail',
  },
  limitRate: {
    // Set the limit rate for the application
    id: 'app',
    // Allow 1 request per 10s
    throttle: 10000,
  },
});