"SendTo" field is blank

Hi,

I am very new to Lotus Notes develoment.

I am currently developing a Lotus Notes AddinMenu dll that needs to access the “SendTo” field of the

UI document.

Here’s the code snippet I am using to access the “SendTo” field:

	//create the workspace

	NOTESUIWORKSPACEPtr uiworkspace( __uuidof( NOTESUIWORKSPACE ) );



	//get the workspace current document

	NOTESUIDOCUMENTPtr uidoc( uiworkspace->GetCURRENTDOCUMENT() );

	

	uidoc->PutAUTORELOAD( _variant_t( true ) ); // want ui to reflect



	//get the pointer to the document from the workspace

	NOTESDOCUMENTPtr doc( uidoc->GetDOCUMENT() );



	uidoc->SAVE();

	

	doc->SAVEMESSAGEONSEND = true;



	NOTESRICHTEXTITEMPtr richtextitem( doc->GETFIRSTITEM( "Body" ) );



	//get the current document subject 

	_bstr_t bsSubject = uidoc->FIELDGETTEXT( _variant_t( "Subject") );



	MessageBox(NULL, (LPCSTR)bsSubject, "subject", MB_OK);



	//get the send to email

	_bstr_t bsSendTo = uidoc->FIELDGETTEXT(  "SendTo" );  

	MessageBox(NULL, (LPCSTR)bsSendTo, "sendto", MB_OK);

The subject is displayed correctly, but the “SendTo” field is blank.

Has anyone had a similar issue? What I am doing wrong?