i was wondering lately how i could send emails with only a front-end language like Javascript through Email as a Service apps like sendgrid or mandrill or so.
Sendgrid a
An alternative is to let each user use his or her own outgoing mail server, by using a mailto: link, which allows you to specify the header information and also a quasi-header named “body”, which puts the content you want into the message body.
Several suugestions
You could use a serverless architecture with AWS Lambda functions written in JavaScript.
You can use FormSpree. Just provide the url in form action.
https://formspree.io/
You can use Smtp.js or emailjs for frontend.
If you'd like to keep the key secure you can use something like Aerobatic's HTTP Proxy to specify the key and proxy through the server environment.