emailjs/emailjs-smtp-client

Error while creating an instance

Closed this issue · 2 comments

SmtpClient is not defined

<script type="text/javascript" src="node_modules/emailjs-smtp-client/src/emailjs-smtp-client-response-parser.js"></script>
<script type="text/javascript" src="node_modules/emailjs-smtp-client/src/emailjs-smtp-client.js"></script>
<script type="text/javascript">
    var client = new SmtpClient(host, 143, {
        'auth': {
            'user': 'xxxxx',
            'pass': '..........'
        },
        'ignoreTLS': true
    })
</script>

Did you find a solution?

The global object is called emailjs-smtp-client. Try window['emailjs-smtp-client']...