I can't get the EmailJS SMTP Client to work

190 views
Skip to first unread message

miste...@gmail.com

unread,
Sep 26, 2017, 4:23:21 AM9/26/17
to Email.js Mailing List
When I use "new SmtpClient()" an error occurs: "SmtpClient is not defined". Maybe I am missing something. This is my Code:

<!DOCTYPE html>
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="viewport" content="initial-scale=1">
  <title>SMTP JS Test</title>
  <script type="text/javascript" src="jquery-3.2.1.min.js"></script>
  <script type="text/javascript" src="emailjs-smtp-client-response-parser.js"></script>
  <script type="text/javascript" src="emailjs-smtp-client.js"></script>
 </head>
 <body>
 </body>
 <script type="text/javascript">
  var alreadySending;
  var options = {
      auth: {
       user: 'm...@email.com',
       pass: 'myPass'
     }
  };
  var client = new SmtpClient('smtp.myserver.com', '25', options);
 </script>
</html>

Michael Heath

unread,
Oct 28, 2017, 4:18:30 PM10/28/17
to Email.js Mailing List
I am having the same problem and am under super tight deadline...like today!
Reply all
Reply to author
Forward
0 new messages