A simple proton mail api. To send emails using JS/TS.
npm install proton-email-apiUnofficial API for interacting with ProtonMail.
Allows interaction with ProtonMail through a simple Node.js API. Leverages the official WebClient, keeping with the spirit of security and privacy. Currently supports sending email. It does not compromise with security as it uses web automation.
``Javascript
import ProtonMail from 'proton-email-api';
(async () {
const pm = new ProtonMail({
username: 'your username',
password: 'your password',
})
await pm.connect()
await pm.sendEmail({
to: 'email',
subject: 'subject (does not support HTML)',
message: 'message (supports HTML)',
})
await pm.close()
})();
``