Skip to content

nylas-samples/java-email-send-form

Repository files navigation

java-email-send-form

This sample will show you to easily grab information for a web form and send it in an email with the Nylas Java SDK.

Setup

System dependencies

  • Java 18.0.2
  • Maven 3.8.6

Gather environment variables

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

Install dependenciese

mvn clean install

Compilation

To compile the comment we need to use this maven command:

mvn clean compile

Usage

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

Learn more

Visit our Nylas Java SDK documentation to learn more.

About

Send an email from a web form with the Nylas Java SDK!

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages