mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
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();
|
||||
try {
|
||||
//TODO: Add BODY=8BITMIME parameter if appropriate?
|
||||
executeSimpleCommand("MAIL FROM: " + "<" + from[0].getAddress() + ">");
|
||||
executeSimpleCommand("MAIL FROM:" + "<" + from[0].getAddress() + ">");
|
||||
for (String address : addresses) {
|
||||
executeSimpleCommand("RCPT TO: " + "<" + address + ">");
|
||||
executeSimpleCommand("RCPT TO:" + "<" + address + ">");
|
||||
}
|
||||
executeSimpleCommand("DATA");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user