Well, here's how I do it...using sendmail on a *nix machine. my $MAILFROM = '[EMAIL PROTECTED]'; my $MAILSUBJECT = "subject goes here"; my $MAILTO = '[EMAIL PROTECTED],[EMAIL PROTECTED]'; # or "user1\@domain.com"
open(SENDMAIL, "| /usr/lib/sendmail $MAILTO") || die; print(SENDMAIL "From: $MAILFROM\nTo: $MAILTO\nSubject: $MAILSUBJECT\n\n"); print(SENDMAIL "Put your output here"); close(SENDMAIL) || die; One way of many... Regards, Danny -----Original Message----- From: Derek Brinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 6:42 PM To: [EMAIL PROTECTED] Subject: Output PERL to E-mail I have a PERL installed on a WinIIS box. This script queries a (SQL) database, makes a few minor manipulations to that data, then builds a small paragraph of text, from there. So, how do I send that text info to an e-mail address (gathered from that same database)? How about several e-ddresses? Surely there are several ways to do this. Isn't there a specific PERL statement especially for this kind of thing? I *do* have FormMail running on another machince (a UNIX/Apache Web Server) on the same network. Would that be easier? More secure? How would I finish this task that way? It is politically necessary avoid any M$ solutions, if possible. Any other, better tacts/suggestions? Please fire away. Yours, -dB- [EMAIL PROTECTED] Web Master/Web Manager/Computer Consultant II North Carolina Central University 712 Cecil Street Suite # 3014 (or 3010) New Education Bldg. - NCCU Campus Durham, NC 27707 Tele: (919) 530-7151 Fax: 530-5097 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]