// configure programatically your mail server info
EmailTransportConfiguration.configure("smtp.server.com", true,
false, "username", "password");
// and go!
new EmailMessage().from("demo@guilhermechapiewski.com").to(yourAddress)
.withSubject("Fluent Mail API")
.withAttachment("file_name")
.withBody("Demo message").send();
System.out.println("Check your inbox!");