OK, thanks to Sadhunathan, who installed MC as a cgi interpreter
"remotely" without any shell access...we are now able to run metacard cgi's
from our web site on a SUN SPARC server in Honolulu. Now come the .mt
scripting questions:

IN a PERL script one declares a variable with the path to the
on board mail program like this:

========
$mailprog = '/usr/lib/sendmail';

then you do other mysterious stuff like:
   open(MAIL,"|$mailprog -t");
    print MAIL "To: $Config{'recipient'}\n";
    print MAIL "From: $Config{'email'} ($Config{'lastName'})\n";
    # Check for Message Subject
    if ($Config{'subject'}) { print MAIL "Subject: $Config{'subject'}\n\n" }
    else                    { print MAIL "Subject: WWW Form Submission\n\n"
}
etc... all of which is relatively obvious. i.e. the mail program must have
certain info or fail: minimum TO: , from, subject and body if there is one.
I am really not sure.
    }
    close (MAIL);
}
==============

Now, I want to convert some of our form processing over to mc cgi's

(knowing nothing of perl, if I touch the
"formMail.pl" template code I got from Matt's Archive I tend to wreck it and
haven't a clue what is wrong)

I am able to, with MC, successfully capture and process the data from the
POST of an html form...append it to a dbase on disk and return to the user a
customized acknowledgment. Now we need to get this mc.cgi to send an email

Does anyone do this already? All I need is a code snippet/sample and we can
go from there. The host is a SUN SPARC Unix box running Apache.

TIA 

Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to