# pepipost-sdk-nodejs

> Pepipost SDK for NodeJS

Latest version **0.4.0** (published 2016-08-23) · 0 weekly downloads

## Install

```sh
npm install pepipost-sdk-nodejs
pnpm add pepipost-sdk-nodejs
yarn add pepipost-sdk-nodejs
bun add pepipost-sdk-nodejs
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2016-08-23 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Tabrez Shaikh |
| Maintainers | itabrezshaikh |

## Links

- npm: https://www.npmjs.com/package/pepipost-sdk-nodejs
- npm.io page: https://npm.io/package/pepipost-sdk-nodejs

## Dependencies (2)

- [string](https://npm.io/package/string.md) ^3.1.1
- [request](https://npm.io/package/request.md) ^2.55.0

## Recent versions

- 0.4.0 (latest) — 2016-08-23
- 0.3.0 — 2016-08-23
- 0.2.0 — 2016-08-22

## README

Pepipost SDK for NodeJS 
=================
This SDK was semi-automatically generated by APIMATIC v2.0. Thanks to [APIMATIC](http://apimatic.io/)

Installation
=================
```
npm install pepipost-sdk-nodejs
```

Usage
=================
create a file example.js and put the below code

***example.js***
```js
var PepipostSDK = require('pepipost-sdk-nodejs');

var Email = PepipostSDK.EmailController;

var data = {
    "api_key": "yoursecretapikey",
    "email_details": {
        "fromname": "yourfromname",
        "subject": "this is test email subject",
        "from": "from@example.com",
        "content": "<p> hi, this is a test email sent via Pepipost JSON API.</p>"
    },
    "recipients": [
        "recipient@example.com"
    ]
};

Email.send(data,callback_mail_sent);

function callback_mail_sent(err_msg,parsed,context){
    if(parsed.errorcode==0){
        console.log("mail sent successfully.\n");
    }
    else{
        console.log("Email sent Failed.\n");
        console.log("errormessage("+parsed.errormessage+")\n");
        console.log("errorcode("+parsed.errorcode+")\n");
    }    
}
```

Change the "yoursecretkey" with your API key and example.com with your approved domain name. To get your api key you need to signup/register on [Pepipost](http://pepipost.com/)


```
nodejs example.js
```

---
_Source: https://npm.io/package/pepipost-sdk-nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
