Skip to content
forked from i11v/temp-mail

Node.js API wrapper for temp-mail.ru and temp-mail.org

Notifications You must be signed in to change notification settings

LeetCodes/temp-mail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temp-mail Build Status

Simple node.js API wrapper for temp-mail.ru and small modification by me (LeetCodes) to work with temp-mail.org

Install

npm install https://github.com/LeetCodes/temp-mail.git

Usage

const TempMail = require('temp-mail')();

Example of temp-mail.org usage

Temp-mail.org requires API username and password authentication, free credentials can be obtained by emailing them. Each function returns a Promise generateEmail, getInbox, deleteMail Quick and dirty modification, more for personal use than anything.. Note: The temp-mail.org SSL certificate is currently expired so you need to disable certificate rejection, it defaults to HTTP

const TempMail = require('temp-mail')({
		domain: 'org',
		username: '11111111-2222-3333-4444-555555555555',
		password: '123456789',
		// Optional HTTPS when not required, defaults to false
		https: true
	});
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

TempMail.generateEmail()
	.then(result => {
			console.log("Email generated:",result);
			TempMail.getInbox(result)
				.then(result => console.log(result))
		}
	).catch(function(e) {
		console.log(e);
	});
let email = TempMail.getInbox('33ef0r5@buy003.com');
email.then(function(result){
	console.log(result);
	}).catch(function(e) {
		console.log(e);
	});

License

MIT

About

Node.js API wrapper for temp-mail.ru and temp-mail.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%