Re: Perl and Qmail
On Fri, Aug 10, 2001 at 08:44:56AM -0700, Greg White wrote: I'm not aware of any _reason_ you'd want to recieve mail in a Perl program -- that's what your MTA is there for. Ever thought about Mailrobots? I've written tons of them - how do you think all the domains get registered? -- * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de * * Roedingsmarkt 14, 20459 Hamburg, Germany * Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Re: Perl and Qmail
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
Re: Perl and Qmail
On Fri, Aug 10, 2001 at 01:45:35PM -, Frederik Van Herterijck wrote: I'm having some problems sending e-mail from within a perl program using qmail. Can someone tell me how I can easily send and receive mails in perl using qmail. I'm trying and trying but nothing works. Qmail works perfectly. This isn't really a qmail question. Reply-to set appropriately. Perl has nearly any way you can imagine to send mail. 1. Net::SMTP -- this is the one I prefer 2. using a pipe to qmail-inject (mentioned elsewhere in this thread) 3. using a pipe to the sendmail wrapper are the best three, in order, IMHO. I'm not aware of any _reason_ you'd want to recieve mail in a Perl program -- that's what your MTA is there for. -- Greg White
Re: Perl and Qmail
- Original Message - [snip] I'm not aware of any _reason_ you'd want to recieve mail in a Perl program -- that's what your MTA is there for. Using perl to create your own MUA, using perl to create an autoresponder, blah, blah, blah..., using perl to grab the stuff from your inbox and then process it. Eric Calvert