mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Don't append "null" to the "MAIL FROM" line in case the server doesn't support 8BITMIME
This commit is contained in:
parent
a7c9804995
commit
aaa0de4dbc
@ -493,7 +493,7 @@ public class SmtpTransport extends Transport {
|
|||||||
Address[] from = message.getFrom();
|
Address[] from = message.getFrom();
|
||||||
try {
|
try {
|
||||||
executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">"
|
executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">"
|
||||||
+ (m8bitEncodingAllowed ? " BODY=8BITMIME" : null));
|
+ (m8bitEncodingAllowed ? " BODY=8BITMIME" : ""));
|
||||||
for (String address : addresses) {
|
for (String address : addresses) {
|
||||||
executeSimpleCommand("RCPT TO:" + "<" + address + ">");
|
executeSimpleCommand("RCPT TO:" + "<" + address + ">");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user