jakal wrote: >Hi, I was wondering if there was a way to send e-mail from a CGI script. If >I was scripting on UNIX, I would just pipe the output to sendmail. Is there >something similar on the Mac. > >I have come across a form-to-email written in Applescript which sends its >output to Mondomail... Is that a Mac version of sendmail, and if so, how >would I 'pipe' the output of my CGI to it??? Try looking in the lib folder at "Net::SMTP" -- basically, you do something like: use Net::SMTP; my $smtp = new Net::SMTP($smtp_server_name); $smtp->mail($mailfrom_address); $smtp->to($mailto_address); $datastring = "To:$mailto_address\nSubject: $subject\r\n$message\n"; $smtp->data( [ $datastring ] ); $smtp->quit; Hope this helps... Ricky ----- Pukku ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org