diff --git a/mailnews/compose/src/nsSmtpProtocol.cpp b/mailnews/compose/src/nsSmtpProtocol.cpp index 8b53b294a56..e3b1d105211 100644 --- a/mailnews/compose/src/nsSmtpProtocol.cpp +++ b/mailnews/compose/src/nsSmtpProtocol.cpp @@ -1010,7 +1010,7 @@ PRInt32 nsSmtpProtocol::SendMessageInFile() if (filePath && *filePath) { nsInputFileStream * fileStream = new nsInputFileStream(nsFileSpec(*filePath), PR_RDONLY, 00700); - if (fileStream) + if (fileStream && fileStream->is_open()) { PRInt32 amtInBuffer = 0; PRBool lastLineWasComplete = PR_TRUE;