Get the total count of CC recipients.
[Syntax] C++: HRESULT GetCCCount( long* pVal ) Visual Basic: GetCCCount() As long C#: long GetCCCount()
Return Value
This method returns the total count of CC recipient.
Usage Example
[C#]
public void ParseAllRecipients( string emailFile )
{
POPMSGClass oMsg = new POPMSGClass();
int nRet = 0, nCount = 0, i = 0;
string name = "", address = "";
try
{
if( oMsg.ImportFile( emailFile ) != 0 )
throw new Exception( "error with ImportFile" );
nCount = oMsg.GetRecipientCount(); //Parse normal recipients
for( i = 1; i <= nCount; i++ )
{
name = oMsg.GetRecipientName(i);
address = oMsg.GetRecipientAddr(i); //Parse carbon copy recipients
}
nCount = oMsg.GetCCCount();
for( i = 1; i <= nCount; i++ )
{
name = oMsg.GetCCName(i);
address = oMsg.GetCCAddr(i);
}
}
catch( Exception e )
{
Console.WriteLine( e.Message );
}
oMsg = null;
}
See Also
GetCCAddr Method
GetCCName Method
GetRecipientAddr Method
GetRecipientCount Method
GetRecipientName Method
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.