I am trying to display a pop up notification on a successful promise, but I keep getting "ReferenceError: doNotification is not defined". If I trigger doNotification on button click within my html, it works. My email function works as well, as console.log prints the appropriate parameters to the console. I am not sure why I am getting this error when calling doNotification from within my email function?
export default {
  methods: {
    sendEmail: (e) => {
      emailjs.sendForm('gmail', 'template', e.target, 'user')
        .then((result) => {
            console.log('SUCCESS!', result.status, result.text);
            doNotification();
        }, (error) => {
            console.log('FAILED...', error);
        });
    e.target.reset();
    },
    doNotification() {
      this.$toast.success("Your message has been sent!", {
      position: "bottom-right"});
    }}}
 
    