proton-email-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Proton Mail API

Unofficial 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.

Setup

Sending an email

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()
})();

More

More features are coming soon. And if u any specific feature then do DM Me. I will try to implement it.

Package Sidebar

Install

npm i proton-email-api

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

11 kB

Total Files

9

Last publish

Collaborators

  • thearcane