Skip to content

Instantly share code, notes, and snippets.

@kprakobkit kprakobkit/sendEmail.js
Last active Feb 14, 2019

Embed
What would you like to do?
import request from "request-promise";
const sendEmail = async () => {
await request({
method: "POST",
json: true,
uri: "http://mountebank:3014/emails", // this is hardcoded but it could be parameterized by environment
body: {
to: "recipient@example.com",
from: "sender@example.com",
content: "Hi!"
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.