Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
3d342999
Commit
3d342999
authored
15 years ago
by
buczekp
Browse files
Options
Downloads
Patches
Plain Diff
[SE-174] using unicode for emails
SVN: 14741
parent
98b65325
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/mail/MailClient.java
+11
-2
11 additions, 2 deletions
.../source/java/ch/systemsx/cisd/common/mail/MailClient.java
with
11 additions
and
2 deletions
common/source/java/ch/systemsx/cisd/common/mail/MailClient.java
+
11
−
2
View file @
3d342999
...
@@ -60,6 +60,8 @@ public final class MailClient extends Authenticator implements IMailClient
...
@@ -60,6 +60,8 @@ public final class MailClient extends Authenticator implements IMailClient
/** This system property is not supported by the <i>JavaMail API</i> */
/** This system property is not supported by the <i>JavaMail API</i> */
public
final
static
String
MAIL_SMTP_PASSWORD
=
"mail.smtp.password"
;
public
final
static
String
MAIL_SMTP_PASSWORD
=
"mail.smtp.password"
;
private
static
final
String
UNICODE_CHARSET
=
"utf-8"
;
private
static
final
Logger
operationLog
=
private
static
final
Logger
operationLog
=
LogFactory
.
getLogger
(
LogCategory
.
OPERATION
,
MailClient
.
class
);
LogFactory
.
getLogger
(
LogCategory
.
OPERATION
,
MailClient
.
class
);
...
@@ -183,8 +185,15 @@ public final class MailClient extends Authenticator implements IMailClient
...
@@ -183,8 +185,15 @@ public final class MailClient extends Authenticator implements IMailClient
msg
.
setReplyTo
(
replyToAddress
);
msg
.
setReplyTo
(
replyToAddress
);
}
}
msg
.
addRecipients
(
Message
.
RecipientType
.
TO
,
internetAddresses
);
msg
.
addRecipients
(
Message
.
RecipientType
.
TO
,
internetAddresses
);
msg
.
setSubject
(
subject
);
if
(
true
)
msg
.
setText
(
content
);
{
msg
.
setSubject
(
subject
);
msg
.
setText
(
content
);
}
else
{
msg
.
setSubject
(
subject
,
UNICODE_CHARSET
);
msg
.
setText
(
content
,
UNICODE_CHARSET
);
}
send
(
msg
);
send
(
msg
);
}
catch
(
MessagingException
ex
)
}
catch
(
MessagingException
ex
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment