If it's a Perl script, you can do it something like this:

open(mail,"|/var/qmail/bin/qmail-inject ");
print(mail "From: Theda Bara <femmefetish\@telia.com>\n");
print(mail "To: Fred Backman <fredrick.backman\@pmail.net>\n");
print(mail "Subject: Lunch with me?\n\n");
printf(mail "The main message goes here....\n");
close(mail);


"A.Wadas" wrote:

> my Linux system is sendmail free. I do not have sendmail in /var/qmail/bin
> Do I need to have it to solve the problem. if so, how to do it without
> reinstalling Qmail.
> Thanks
> Andrzej Wadas
>
> James McGlinn wrote:
>
> > root wrote:
> > >
> > > I am trying to use formmail script ( www.worldwidemart.com )with qmail
> > > having variable mailprog set to
> > > /var/qmail/bin/qmail-send. Script works but data are not sent.
> > > Place above gives scripts to work with  sendmail. Is there something
> > > similar for qmail?
> > > may I kindly ask for a little help from someone who uses cgi scripts
> > > with qmail and sends formmails?
> > > I appreciate  it.
> > > Thanks, Andrzej Wadas
> >
> > Qmail's sendmail emulator works fine with this script.  I've left the
> > line unmodified, and haven't had any problems.
> >
> > Regards,
> > James McGlinn
> >
> > --
> > Entertainz Web Solutions  *  http://www.entertainz.co.nz/
> > --

Reply via email to