From e698c78190a128090e2fca936c0ad057568adf1c Mon Sep 17 00:00:00 2001 From: DraSine on Rails Date: Thu, 31 Mar 2011 21:39:52 +0800 Subject: [PATCH] Fixed gcode #3182 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sending mail (SMTP) doesn’t work is the SMTP server is picky about RFC conformance of envelope dialogue. k9mail: MAIL FROM: RCPT TO: rfc: MAIL FROM: RCPT TO: --- src/com/fsck/k9/mail/transport/SmtpTransport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/mail/transport/SmtpTransport.java b/src/com/fsck/k9/mail/transport/SmtpTransport.java index 3dfb9fbfc..6ab90e689 100644 --- a/src/com/fsck/k9/mail/transport/SmtpTransport.java +++ b/src/com/fsck/k9/mail/transport/SmtpTransport.java @@ -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");