Problem solved...seems a "-t" is required to open the process correctly
#!/path_to_your_/www/public_html/cgi-bin/mc
on startup
put "/usr/lib/sendmail -t" into mprocess
open process mprocess for write
write "From:" && "[EMAIL PROTECTED]" & cr to process mprocess
write "To:" && "[EMAIL PROTECTED],[EMAIL PROTECTED]" & cr to process
mprocess
write "Subject:" && "Prayer for Documentation" & cr & cr to process
mprocess
write "Dear God, if you get this then you realize we finally succeeded.
Please bless Simon and Kevin that they may provide future users with
documentation, examples so that others will be spared the trouble we go thru
to get the simplest things to work." to process mprocess
close process mprocess
wait until the openprocesses is empty
read from stdin until empty
put it after buffer
put cr & cr & "Your mail was sent to heaven." after buffer
put "Content-Type: text/plain" & cr
put "Content-Length:" && the length of buffer & cr & cr
put buffer
end startup
script name: mail_mc.cgi
description: This script creates and email, sends it and then posts a
response to the browser. It is only a basic frame work for sending an email
using a Metacard script on a Unix server. Note the "/usr/lib/sendmail -t"
required to open the process. This could vary on different systems. Check
functional perl scripts on the same system that process mail, for clues.
A bit later we will post a complete mc script that processes a web form,
sends email and saves the data to a flat file on the hard drive and returns
a customized HTML form.
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.