This sample will show you to easily grab information for a web form and send it in an email with the Nylas Java SDK.
- Java 18.0.2
- Maven 3.8.6
You'll need the following values:
NYLAS_API_KEY=
NYLAS_API_URI=
NYLAS_GRANT_ID=
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
mvn clean install
To compile the comment we need to use this maven
command:
mvn clean compile
Run the web server using the maven
command:
$ mvn exec:java -Dexec.mainClass="Main"
On your web broser goto localhost:4567/feedback
to complete the email form.
When your message is successfully sent, you will receive a message on the web page and will be redirected to the form
Visit our Nylas Java SDK documentation to learn more.