mirror of https://github.com/moparisthebest/k-9
Fixed gcode #3182
Sending mail (SMTP) doesn’t work is the SMTP server is picky about RFC conformance of envelope dialogue. k9mail: MAIL FROM: <sender@dom.ain> RCPT TO: <receiver@dom.ain> rfc: MAIL FROM:<sender@dom.ain> RCPT TO:<receiver@dom.ain>
This commit is contained in:
parent
8b3648f88c
commit
e698c78190
|
@ -326,9 +326,9 @@ public class SmtpTransport extends Transport {
|
||||||
Address[] from = message.getFrom();
|
Address[] from = message.getFrom();
|
||||||
try {
|
try {
|
||||||
//TODO: Add BODY=8BITMIME parameter if appropriate?
|
//TODO: Add BODY=8BITMIME parameter if appropriate?
|
||||||
executeSimpleCommand("MAIL FROM: " + "<" + from[0].getAddress() + ">");
|
executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">");
|
||||||
for (String address : addresses) {
|
for (String address : addresses) {
|
||||||
executeSimpleCommand("RCPT TO: " + "<" + address + ">");
|
executeSimpleCommand("RCPT TO:" + "<" + address + ">");
|
||||||
}
|
}
|
||||||
executeSimpleCommand("DATA");
|
executeSimpleCommand("DATA");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue