summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kmail/kmsender.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kmail/kmsender.cpp b/kmail/kmsender.cpp
index 9a8ae5be7..e63add04d 100644
--- a/kmail/kmsender.cpp
+++ b/kmail/kmsender.cpp
@@ -483,6 +483,9 @@ void KMSender::doSendMsg()
msgTransport = mCurrentMsg->headerField("X-KMail-Transport");
}
if ( msgTransport.isEmpty() ) {
+ msgTransport = GlobalSettings::self()->defaultTransport();
+ }
+ if ( msgTransport.isEmpty() ) {
const TQStringList sl = KMTransportInfo::availableTransports();
if (!sl.empty()) msgTransport = sl.front();
}