Command/Script

Send email from everywhere

Register Here

You can send email using a command line or a script


CURL

curl is an open source command line tool and library for transferring data with URL syntax

Request

curl -H "Content-Type: application/json" -v -X POST -d '{"name":"josdem","email":"joseluis.delacruz@gmail.com","message":"Hello from curl!", "template":"message.ftl","token":"userToken"}' 'http://jmailer.josdem.io/emailer/message'


WSLite

Lightweight SOAP and REST webservice clients for Groovy

@Grab('com.github.groovy-wslite:groovy-wslite:1.1.2')

import wslite.rest.RESTClient


def client = new RESTClient("http://jmailer.josdem.io/emailer/")

client.post(path:'message'){

  json name:"josdem",email:"joseluis.delacruz@gmail.com",message:"Hello from WSLite!",template:"message.ftl",token:"userToken"

}