author | leseb <leseb> | 2002-06-15 19:26:09 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-15 19:26:09 (UTC) |
commit | a041cfe9806d7089d469e14da125adab4a93a5ab (patch) (side-by-side diff) | |
tree | 0a9700e49dd1be1fa67df4f8bd429a9aed1c1dec | |
parent | f797160d879c74652b27bca3df8a74243465d65c (diff) | |
download | opie-a041cfe9806d7089d469e14da125adab4a93a5ab.zip opie-a041cfe9806d7089d469e14da125adab4a93a5ab.tar.gz opie-a041cfe9806d7089d469e14da125adab4a93a5ab.tar.bz2 |
Fix
-rw-r--r-- | noncore/unsupported/mail2/libmail/smtphandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/libmail/smtphandler.cpp b/noncore/unsupported/mail2/libmail/smtphandler.cpp index 1bbad8b..d0a505d 100644 --- a/noncore/unsupported/mail2/libmail/smtphandler.cpp +++ b/noncore/unsupported/mail2/libmail/smtphandler.cpp @@ -113,29 +113,29 @@ void SmtpHandler::readyRead() _state = Mail; } else if (_state == Helo && responseCode == 220) { QString hostname = getenv("HOSTNAME"); if (hostname.stripWhiteSpace().isEmpty()) hostname = "opiemail"; emit status(tr("SMTP> HELO *")); sendToSocket(QString("HELO %1\r\n").arg(hostname)); _state = Mail; } else if (_state == Mail && responseCode == 250) { emit status(tr("SMTP> MAIL FROM: *")); - sendToSocket("MAIL FROM: " + _account.email() + "\r\n"); + sendToSocket("MAIL FROM: <" + _account.email() + ">\r\n"); _state = Rcpt; } else if (_state == Rcpt && responseCode == 250) { emit status(tr("SMTP> RCPT TO: *")); - sendToSocket("RCPT TO: " + _to + "\r\n"); + sendToSocket("RCPT TO: <" + _to + ">\r\n"); _state = Data; } else if (_state == Data && responseCode == 250) { emit status(tr("SMTP> DATA")); sendToSocket("DATA\r\n"); _state = Body; } else if (_state == Body && responseCode == 354) { emit status(tr("SMTP> Sending data...")); sendToSocket(_header + "\r\n" + _message + "\r\n.\r\n", false); _state = Quit; } else if (_state == Quit) { emit status(tr("SMTP> QUIT (Done)")); sendToSocket("QUIT\r\n"); |