use spring boot and resttemplate to send email by MailGun and SendGrid
1.import the project into your IDE. 2.add json-lib jar into your project. 3.run Application.java file,then the server started. 4.type "http://localhost:8080/DoSend" in your browser. 5.done.