Title: C API for queueing messages

Hi All,
We are trying to find out what is the most efficient way of queueing the message in qmail from our C Programs. So, would like to know if there are any C API's that are available for queuing messages. Basically I am looking for library routines that act as the native submission interface(API) for qmail. I would like to use the API's from my C Program that we currently have where we compose and build the messages and to queue the email message directly. Something similar to mail_open() and mail_close() provided by zmailer where you can submit messages composed in the MSG_RFC822 format.

I can always call sendmail wrapper for queue-Inject or queue-inject itself from my C program thro a popen() or system() call, but I want to avoid the overhead of starting a new UNIX process for each and every email that we send and also popen() is not very efficient.

Any help will be appreciated. Any other ideas are also most welcome
Thanks and Regards,
- Jay

Reply via email to