Step 1: Create a send grid account for send gid key and password.(With free account you can send 200 email every day.No Expiration.)
Sign Up For Free Send Grid Account
Step 2: Incude following jars
i - sendgrid-0.1.0-jar.jar
ii- org.json-chargebee-1.0.jar
iii- http-request-5.4.jar
Step 3: Create a object of SendGrid Class
Sign Up For Free Send Grid Account
Step 2: Incude following jars
i - sendgrid-0.1.0-jar.jar
ii- org.json-chargebee-1.0.jar
iii- http-request-5.4.jar
Step 3: Create a object of SendGrid Class
import com.github.sendgrid.SendGrid;
SendGrid sendgrid = new SendGrid("SendGridKey","SendGridPassword");
sendgrid.addTo("Reciver Email");
sendgrid.addToName("Harit");
sendgrid.setFrom("EmailFrom");
sendgrid.setSubject("Subject");
sendgrid.setText("Body Text");
sendgrid.send();
0 comments:
Post a Comment