Koozali.org: home of the SME Server

Perl script variable

Kobus Bensch

Perl script variable
« on: September 20, 2002, 02:23:30 AM »
Hi everyone.

I want to setup a perl script for an email form on my website and need to set a variable to the sendmail program. 2 q's.

1) Does esmith use sendmail?

2) If so what is the path?

Thanks for the help in advance.

Meert

Re: Perl script variable
« Reply #1 on: September 20, 2002, 11:34:00 AM »
# which sendmail
/usr/sbin/sendmail

Rich Lafferty

Re: Perl script variable
« Reply #2 on: September 20, 2002, 06:17:06 PM »
Kobus Bensch wrote:
>
> 1) Does esmith use sendmail?

No, it uses qmail.

> 2) If so what is the path?

/usr/sbin/sendmail :-)

(That's a sendmail-compatible wrapper for qmail-inject; as far as something
calling the program to hand it mail is concerned, it acts like sendmail.)

Cheers,

--Rich

Greg Zartman

Re: Perl script variable
« Reply #3 on: September 20, 2002, 08:42:45 PM »
> (That's a sendmail-compatible wrapper for qmail-inject; as
> far as something
> calling the program to hand it mail is concerned, it acts
> like sendmail.)

The qmail's sendmail emulator doesn't provide 100% compatibility, so be sure test any scripts that use sendmail prior to deploying.   For example:  The very popular formmail.pl script (from Matt's script archive) uses the -t sendmail flag, which is not supported under qmail.

Regards,
Greg Zartman

Arkman

Re: Perl script variable
« Reply #4 on: September 20, 2002, 11:25:34 PM »
Somwhere around here (it might be Darrell May's) is a handy little php based form mailer that works great on SME. I think that there's a how-to around as well.

Greg Zartman

Re: Perl script variable
« Reply #5 on: September 20, 2002, 11:43:37 PM »
> Somwhere around here (it might be Darrell May's) is a handy
> little php based form mailer that works great on SME. I think
> that there's a how-to around as well.

Naaa.   Perl is MUCH better at doing this sort of thing than PHP.   Making a change to a script like formmail.pl doesn't require any serious surgery, only a minor tweak.  

Greg