# Vue.js

Vue.js (opens new window) is a progressive framework for building user interfaces. And we are going to show how to use EmailJS SDK to send emails from Vue.js.

Below we will build the contact form component, ContactUs.vue:

  <form ref="form" @submit.prevent="sendEmail">
    <input type="text" name="user_name">
    <input type="email" name="user_email">
    <textarea name="message"></textarea>
    <input type="submit" value="Send">

import emailjs from '@emailjs/browser';

export default {
  methods: {
    sendEmail() {
        .sendForm('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', this.$refs.form, {
          publicKey: 'YOUR_PUBLIC_KEY',
          () => {
          (error) => {
            console.log('FAILED...', error.text);