Best samples to send/receive a mail using Lotus C API

Hi all, Let me know best samples to send or receive a mail using Lotus Notes C API.

I’m developing mail application using Lotus Notes C API.

I refer readmail or sendmail program in the samples\mail folder in the Lotus C API Toolkit for NotesDomino.

But I have some questions.

  • The samples require to input a password on the console.

    *)MailOpenMessageFile

    I want to enter a password on the dialog.

  • The readmail program searchs all mails.

    *)MailCreateMessageList

    But I want to read new mails or mails in the Inbox folder.

If there is best samples in Sandbox, let me know.

Regards,

Tom