Skip to content

Commit 9deafc4

Browse files
committed
remove async demo example as it keeps the JVM alive
1 parent 1bee08c commit 9deafc4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

modules/cli-module/src/test/java/demo/CliDemoApp.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public static void main(String[] args) {
2525

2626
demoTestConnection(serverConfig);
2727
demoSend(serverConfig);
28-
demoSendAsync(serverConfig);
2928
demoSendUsingFileAsHTMLBody(serverConfig);
3029
}
3130

@@ -49,18 +48,6 @@ private static void demoSend(ServerConfig serverConfig) {
4948
});
5049
}
5150

52-
private static void demoSendAsync(ServerConfig serverConfig) {
53-
CliSupport.runCLI(new String[]{
54-
"send",
55-
"--email:forwarding", SOURCE_FOLDER + "/test/resources/test-messages/HTML mail with replyto and attachment and embedded image.msg",
56-
"--email:from", "Test sender", DemoAppBase.YOUR_GMAIL_ADDRESS,
57-
"--email:to", "Test Receiver", DemoAppBase.YOUR_GMAIL_ADDRESS,
58-
"--mailer:async",
59-
"--mailer:withSMTPServer", "smtp.gmail.com", "587", serverConfig.getUsername(), serverConfig.getPassword(),
60-
"--mailer:withTransportStrategy", "SMTP_TLS"
61-
});
62-
}
63-
6451
private static void demoSendUsingFileAsHTMLBody(ServerConfig serverConfig) {
6552
CliSupport.runCLI(new String[]{
6653
"send",

0 commit comments

Comments
 (0)