# Installation

This guide goes through the various methods used to install EmailJS SDK.

# Package manager

If you are using modern frameworks or another way to bundle your application, then you can use one of package managers to install EmailJS SDK.

Install EmailJS SDK using npm (opens new window):

$ npm install --save @emailjs/browser

Alternatively, you can also install the SDK via Yarn (opens new window):

$ yarn add @emailjs/browser

# Browser script

In order to get started using EmailJS on your website just paste the following code snippet before closing tag, with the correct public key:





 
 
 
 
 


<script type="text/javascript"
        src="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js">
</script>
<script type="text/javascript">
   (function(){
      emailjs.init({
        publicKey: "YOUR_PUBLIC_KEY",
      });
   })();
</script>

You can obtain your public key from the Account (opens new window) page in the EmailJS dashboard.