From bdef2e65a9cc37f6f4b896a75e63d0e122b15348 Mon Sep 17 00:00:00 2001 From: liangkun03 Date: Wed, 10 Apr 2019 17:31:16 +0800 Subject: [PATCH] =?UTF-8?q?replace=E6=94=B9=E4=B8=BAreplaceAll=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/io/github/biezhi/ome/OhMyEmail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/biezhi/ome/OhMyEmail.java b/src/main/java/io/github/biezhi/ome/OhMyEmail.java index 523699f..9460efb 100644 --- a/src/main/java/io/github/biezhi/ome/OhMyEmail.java +++ b/src/main/java/io/github/biezhi/ome/OhMyEmail.java @@ -205,7 +205,7 @@ public OhMyEmail bcc(String bcc) throws MessagingException { } private OhMyEmail addRecipients(String[] recipients, Message.RecipientType type) throws MessagingException { - String result = Arrays.asList(recipients).toString().replace("(^\\[|\\]$)", "").replace(", ", ","); + String result = Arrays.asList(recipients).toString().replaceAll("(^\\[|\\]$)", "").replace(", ", ","); msg.setRecipients(type, InternetAddress.parse(result)); return this; }