I\'m using the smtpjs script to send emails using javascript. On the website there is a tool to get a secure token instead of leaving your login credentials in the code.