Skip to content

Commit

Permalink
Fix the mailer connection pool when multiple mailers are used
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier authored and holly-cummins committed Feb 8, 2024
1 parent 7821e29 commit af6d9eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public void stop() {

private MailClient createMailClient(Vertx vertx, MailerRuntimeConfig config, TlsConfig tlsConfig) {
io.vertx.ext.mail.MailConfig cfg = toVertxMailConfig(config, tlsConfig);
return MailClient.createShared(vertx, cfg);
// Do not create a shared instance, as we want separated connection pool for each SMTP servers.
return MailClient.create(vertx, cfg);
}

private io.vertx.ext.mail.DKIMSignOptions toVertxDkimSignOptions(DkimSignOptionsConfig optionsConfig) {
Expand Down

0 comments on commit af6d9eb

Please sign in to comment.