Don't append "null" to the "MAIL FROM" line in case the server doesn't support 8BITMIME

This commit is contained in:
cketti 2013-09-06 20:28:46 +02:00
parent a7c9804995
commit aaa0de4dbc

View file

@ -493,7 +493,7 @@ public class SmtpTransport extends Transport {
Address[] from = message.getFrom();
try {
executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">"
+ (m8bitEncodingAllowed ? " BODY=8BITMIME" : null));
+ (m8bitEncodingAllowed ? " BODY=8BITMIME" : ""));
for (String address : addresses) {
executeSimpleCommand("RCPT TO:" + "<" + address + ">");
}