fix #186
This commit is contained in:
parent
785400f6b9
commit
5a6fd1605a
2 changed files with 4 additions and 6 deletions
4
pom.xml
4
pom.xml
|
@ -613,8 +613,8 @@
|
|||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.mail</groupId>
|
||||
<artifactId>javax.mail-api</artifactId>
|
||||
<groupId>com.sun.mail</groupId>
|
||||
<artifactId>javax.mail</artifactId>
|
||||
<version>1.5.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -63,10 +63,8 @@ public class MailHelper implements Serializable {
|
|||
final MimeMessage msg = new MimeMessage(session);
|
||||
msg.setFrom(new InternetAddress(from));
|
||||
final InternetAddress[] address = new InternetAddress[toAddresses.length];
|
||||
if (toAddresses.length > 1) {
|
||||
for (int i = 1; i < toAddresses.length; i++) {
|
||||
address[i] = new InternetAddress(toAddresses[i]);
|
||||
}
|
||||
for (int i = 0; i < toAddresses.length; i++) {
|
||||
address[i] = new InternetAddress(toAddresses[i]);
|
||||
}
|
||||
msg.setRecipients(Message.RecipientType.TO, address);
|
||||
msg.setSubject(subject);
|
||||
|
|
Loading…
Add table
Reference in a new issue