Fixing bug 108912. Opening the accountmanager window panel for any activity is having adverse affect on the smtp server of the associated identity. Fixing the situation to use the smtp server of the identity only when the key is valid. In all other cases, default smtp server will be used to send messages. r=ducarroz, sr=sspitzer, a=asa@mozilla.org

This commit is contained in:
racham%netscape.com 2001-11-08 23:40:34 +00:00
parent 00e2ae022a
commit 53c08f8f7d

View File

@ -125,7 +125,7 @@ nsresult nsSmtpService::SendMailMessage(nsIFileSpec * aFilePath,
if (aSenderIdentity) {
nsXPIDLCString smtpServerKey;
rv = aSenderIdentity->GetSmtpServerKey(getter_Copies(smtpServerKey));
if (NS_SUCCEEDED(rv) && (const char *)smtpServerKey)
if (NS_SUCCEEDED(rv) && !(smtpServerKey.IsEmpty()))
rv = GetServerByKey(smtpServerKey,
getter_AddRefs(smtpServer));
}