[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] HLP: CGI to sendmail in MacPerl



On Sat, 23 May 1998 12:10:29 +0100, Paul Ross wrote:
>
>I am trying to use MacPerl 5 to email data filled into HTML forms. I am
>using Perl scripts that I wrote for a UNIX server but now I am on a Mac
>using Appleshare IP 5.0
>
>My problem is: how does one get the Mac equivalent to the UNIX sendmail?

There isn't one. You need to rewrite the script to do the job entirely in
Perl with Net::SMTP. Sending Apple Events to one of the Mac SMTP servers
might also work, but I've never used one.

>
>The MacPerl documentation is curiously silent on the matter but according
>to the MacPerl FAQ (December 20th, 1996) I need MailIt  and MacSMTP.pl -
>the latter needs 'macchat' which needs GUSI.ph etc. etc.
>
>Is it really necesary to use so much MacPerl code to do such a simple
thing
>as emailing form data which just takes a line in UNIX?

That "one line'' takes advantage of a pipe (which don't exist in MacOS)
and the bloated Unix program with the worst security record of any I know.
MacOS isn't Unix yet. If you want Unix, move the script back to the Unix
server or install Linux or NetBSD or MachTen on the Mac. If you want the
script to work under MacPerl, you'll need to rewrite it.

>
>Any help gratefully recieved.
>
>Paul Ross
>



-------
Paul J. Schinder
schinder@pobox.com


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch