OmniMessaging ZLE Adapter Programmer's Guide 6.2
OmniMessaging ZLE Mail Adapter Installation Guide 
Opsol Confidential and Proprietary       15
 printf("\n Enter the attachment location as $VOL.SUBVOL.filename: "); 
 /* e.g. $vol1.subvol1.logo */ 
 fflush(NULL); 
 scanf("%s", pSendMsgBuff->attachments[i].location); 
 }/* end for */ 
 printf("\n Enter the Message Body: "); 
 /* e.g. Test Message with attachments */ 
 fflush(NULL); 
 scanf("%s", pSendMsgBuff->message_body); 
 nReqBufSize = (short) sizeof(OMNI_sendMessage); 
 nError = SERVERCLASS_SEND_(pmonProcessName, 
 nPmonProcessNameLen, 
  pSvrClassName, 
 nSvrClassNameLen, 
 (char *)pSendMsgBuff, 
 nReqBufSize, 
  nMaxRepLen, 
 &nActualReplyLength); 
 if (nError != 0) 
 { 
 nError2= SERVERCLASS_SEND_INFO_(&nPathsendError, &nFileSysError); 
 if (nError2 != 0) 
 printf("\n ERROR: Serverclass send info failed with error: %d\n", nError2); 
 else 
 printf("\n ERROR: PathsendError: %d\t FileSysError: %d\n",  
 nPathsendError, 
 nFileSysError); 
 } 
 else 
 printf("\n Result: RETURN CODE = %d\n" , pSendMsgBuff->returnCode); 
 } 
 free(pSendMsgBuff); 
 pSendMsgBuff = NULL; 
 return 0; 
}/* end main*/ 










