diff -r ecf6a73a9186 -r 60a8a215b0ec email/pop3andsmtpmtm/smtpservermtm/src/IMSMSEND.CPP --- a/email/pop3andsmtpmtm/smtpservermtm/src/IMSMSEND.CPP Tue Oct 05 13:58:47 2010 +0530 +++ b/email/pop3andsmtpmtm/smtpservermtm/src/IMSMSEND.CPP Tue Oct 19 11:30:16 2010 +0530 @@ -56,8 +56,9 @@ Connect the session to the server @param aClientStatus Client status to be completed +@param aIsSilent If ETrue then Silent Connection is required */ -void CImSmtpSession::ConnectL(TRequestStatus& aClientStatus) +void CImSmtpSession::ConnectL(TRequestStatus& aClientStatus, TBool aIsSilent) { __ASSERT_DEBUG(!iSocketIsConnected, gPanic(EImsmSocketAlreadyConnected)); @@ -72,7 +73,7 @@ iCompleted = KErrNone; iState = EConnectingToSmtp; // Initialise to 1st state of state machine - DoStateL(); // Here we go... + DoStateL(aIsSilent); // Here we go... Queue(aClientStatus); } else @@ -316,16 +317,19 @@ TInt numberRcpts = rcptArray->Count(); if(numberRcpts) - { - iSendFiles->BccRcptArray().AppendL((*rcptArray)[0]); - CDesCArray& tempArr = iSendFiles->BccRcptArray(); - for(TInt counter=1; counter 0) - iSendFiles->BccRcptArray().AppendL((*rcptArray)[counter]); - } + { + iSendFiles->BccRcptArray().AppendL((*rcptArray)[0]); + CDesCArray& tempArr = iSendFiles->BccRcptArray(); + for(TInt counter=1; counter 0) + { + iSendFiles->BccRcptArray().AppendL((*rcptArray)[counter]); + } + + } } rcptArray->Reset(); } @@ -820,7 +824,7 @@ return EClosingSmtp; } -void CImSmtpSession::DoStateL() +void CImSmtpSession::DoStateL(TBool aIsSilent) // performs the operation required by iState { switch (iState) @@ -830,6 +834,7 @@ i8BitMimeAcceptedHere = EFalse; iSizeAcceptedHere = EFalse; iStartTlsAcceptedHere = EFalse; + iSocket->SetSilentConnection(aIsSilent); if(iSettings.SSLWrapper()) { // Open secure socket on port 465 for SMTP session