Skip to content

Commit

Permalink
remove async demo example as it keeps the JVM alive
Browse files Browse the repository at this point in the history
  • Loading branch information
bbottema committed May 4, 2024
1 parent 1bee08c commit 9deafc4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions modules/cli-module/src/test/java/demo/CliDemoApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public static void main(String[] args) {

demoTestConnection(serverConfig);
demoSend(serverConfig);
demoSendAsync(serverConfig);
demoSendUsingFileAsHTMLBody(serverConfig);
}

Expand All @@ -49,18 +48,6 @@ private static void demoSend(ServerConfig serverConfig) {
});
}

private static void demoSendAsync(ServerConfig serverConfig) {
CliSupport.runCLI(new String[]{
"send",
"--email:forwarding", SOURCE_FOLDER + "/test/resources/test-messages/HTML mail with replyto and attachment and embedded image.msg",
"--email:from", "Test sender", DemoAppBase.YOUR_GMAIL_ADDRESS,
"--email:to", "Test Receiver", DemoAppBase.YOUR_GMAIL_ADDRESS,
"--mailer:async",
"--mailer:withSMTPServer", "smtp.gmail.com", "587", serverConfig.getUsername(), serverConfig.getPassword(),
"--mailer:withTransportStrategy", "SMTP_TLS"
});
}

private static void demoSendUsingFileAsHTMLBody(ServerConfig serverConfig) {
CliSupport.runCLI(new String[]{
"send",
Expand Down

0 comments on commit 9deafc4

Please sign in to comment.