KY Lui <[EMAIL PROTECTED]> wrote:
>
> i want to develop an application which can send mail through the qmail
> system.
Fair enough.
> could you please give me a starting point of this? i don't know how to do
> it
There are several options:
-use SMTP (i.e., inject via the network). Easy in VHHLs like Python or Perl.
-use qmail's sendmail wrapper, calling out to /usr/sbin/sendmail or wherever
you've installed it. You probably want to use a pipe here.
-similar to above, but use qmail-inject, qmail's native human interface.
-similar to above, but use qmail-queue. This is good if your message is
already preformatted, you don't need to do any address parsing, etc.
The man pages for qmail-inject and qmail-queue will tell you what you need to
know. For examples, look in the mailing list archives, or at qmail.org.
There are lots of programs there, in various languages, that send mail through
qmail.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------