emailjs-com / emailjs-sdk

EmailJS helps sending emails using client side technologies only. No server is required.
https://www.emailjs.com
BSD 3-Clause "New" or "Revised" License
112 stars 11 forks source link

IE11 Support #30

Closed satoshionoda closed 3 years ago

satoshionoda commented 3 years ago

Hi there,

Version 3.x causes runtime error with IE11 probably because of the transpiler settings. Is it possible to make the SDK compatible with IE11?

xr0master commented 3 years ago

@satoshionoda Hi, SDK version 3 is a pure ES module that you can integrate into your package. IE11 and other versions can be added by your compiler (for example, webpack). You can also use the browser script version that supports IE. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/emailjs-com@3/dist/email.min.js"></script>

satoshionoda commented 3 years ago

@xr0master

Ok, I'll look into my transpiler's configuration.

Meantime, the browser script version actually does not work with IE 11 as it uses a lot of arrow functions. Could you check out this?