OmniMessaging ZLE Adapter Programmer's Guide 6.2

OmniMessaging ZLE Mail Adapter Installation Guide
Opsol Confidential and Proprietary 14
printf("\n Enter the recepient name: ");
/* e.g. USER2 */
fflush(NULL);
scanf("%s", pSendMsgBuff->dest_addresses[i].name);
printf("\n Enter the recepient address: ");
/* e.g. user2@domain.com */
fflush(NULL);
scanf("%s", pSendMsgBuff->dest_addresses[i].address);
printf("\n Enter the recepient role (to=0,cc=1,bcc=2): ");
/* e.g. 0 */
fflush(NULL);
scanf("%hd", &pSendMsgBuff->dest_addresses[i].role);
printf("\n Enter the recipient DSN flag value: ");
/* e.g. 1 */
fflush(NULL);
scanf("%hd", &pSendMsgBuff->dest_addresses[i].DSNFlag);
}/* end for */
printf("\n Enter the subject upto 180 characters: ");
/* e.g. TestMsg */
fflush(NULL);
scanf("%s", pSendMsgBuff->subject);
pSendMsgBuff->subject_len = (short) strlen(pSendMsgBuff->subject);
printf("\n Enter the number of attachments: ");
/* e.g. 1 */
fflush(NULL);
scanf("%hd", &pSendMsgBuff->attach_count);
if (pSendMsgBuff->attach_count > 10)
{
printf("\n Max 10 attachments are supported");
exit(0);
}
for (i=0; i<pSendMsgBuff->attach_count; i++)
{
printf("\n Enter the attachment name: ");
/* e.g. logo.jpg */
fflush(NULL);
scanf("%s", pSendMsgBuff->attachments[i].name);
printf("\n Enter the Mime content type: ");
/* e.g. image */
fflush(NULL);
scanf("%s", pSendMsgBuff->attachments[i].content_type);
printf("\n Enter the Mime content subType: ");
/* e.g. jpeg */
fflush(NULL);
scanf("%s", pSendMsgBuff->attachments[i].content_subtype);