get the SMTP prefs from the current identity

This commit is contained in:
alecf%netscape.com 1999-04-06 22:49:27 +00:00
parent 6cf60d5822
commit a59c1f713c

View File

@ -68,11 +68,11 @@ nsresult nsSmtpService::SendMailMessage(const nsFilePath& aFilePath, const nsStr
nsServiceManager::ReleaseService(kCMsgMailSessionCID, mailSession);
if (NS_SUCCEEDED(rv) && identity)
{
const char * hostName = nsnull;
const char * senderName = nsnull;
char * hostName = nsnull;
char * senderName = nsnull;
identity->GetSmtpServer(&hostName);
identity->GetSmtpName(&senderName);
identity->GetSmtpHostname(&hostName);
identity->GetSmtpUsername(&senderName);
rv = NS_MsgBuildMailtoUrl(aFilePath, hostName, senderName, aRecipients, aUrlListener, &urlToRun); // this ref counts urlToRun
if (NS_SUCCEEDED(rv) && urlToRun)
{