Hi Frederik,
> I'm having some problems sending e-mail from within a perl program
> using qmail.
try opening a 'pipe' to qmail-inject and send your mail in
--
open(INJECTPIPE, "| qmail-inject");
print all you info to the pipe
Bcc:
Cc:
From:
Reply-To:
Subject:
and the other stuff required
after that, the text of the mail
example:
print INJECTPIPE "Subject: " . <your Subject> . "\n";
then
close(INJECTPIPE);
--
works like a charm and is very fast :-)
that's for sending, receiving could be done by processing
$HOME/Maildir/new/* or doing the SMTP-handling yourself,
which I would try to avoid (qmail is better than you doing this :-)
hope this helps,
Chris