https://github.com/codenameone/sendgridlib
SendGrid cn1lib for sending emails directly from a Codename One app
https://github.com/codenameone/sendgridlib
Last synced: 11 months ago
JSON representation
SendGrid cn1lib for sending emails directly from a Codename One app
- Host: GitHub
- URL: https://github.com/codenameone/sendgridlib
- Owner: codenameone
- License: mit
- Created: 2018-08-12T18:48:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T04:38:07.000Z (almost 7 years ago)
- Last Synced: 2025-01-28T05:41:50.416Z (about 1 year ago)
- Language: Java
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SendGrid Lib
This is a trivial cn1lib for sending emails using [sendgrid](https://sendgrid.com/). It doesn't support most of the features of sendgrid but can support everything if we want to add it. It's trivial and based on the REST API.
## Usage
````java
SendGrid s = SendGrid.create(YOUR_SEND_GRID_API_TOKEN);
s.sendSync(toEmail, fromEmail, subject, body);
````
Notice you will need a [sendgrid](https://sendgrid.com/) account which is available for free with 100 free emails per day. The signup wizard provides a button to generate the API token.