No description, website, or topics provided.
Java
Switch branches/tags
Nothing to show
Latest commit 1348821 Feb 20, 2012 @jamesward jamesward small stuff
Permalink
Failed to load latest commit information.
app small stuff Feb 21, 2012
conf init Feb 21, 2012
public init Feb 21, 2012
test init Feb 21, 2012
.gitignore init Feb 21, 2012
README.md small stuff Feb 21, 2012

README.md

A Simple Play + SendGrid Example App

Setup

Set the production mail config in the conf/applicaiton.conf file:

%prod.mail.smtp.host=smtp.sendgrid.net
%prod.mail.smtp.user=${SENDGRID_USERNAME}
%prod.mail.smtp.pass=${SENDGRID_PASSWORD}

Sending Email

MultiPartEmail email = new MultiPartEmail();
email.setFrom(fromAddress);
email.addTo(toAddress);
email.setSubject(subject);
email.setMsg(msg);
Mail.send(email);

Deploy on Heroku

Create a new app on Heroku

heroku create -s cedar

Add the SendGrid Add-On

heroku addons:add sendgrid

Deploy the app:

git push heroku master