Hello All, I have left my copy of the Perl Cookbook and MacPerl: Power and Ease at home and I need a little help.
I want to use MacPerl to send a report to me. I wrote this and its syntax is correct, but I am getting an error message. It does not like something in the Mail::Send module around line 289. ---------- #!/usr/local/bin/perl -w use Mail::Send; use strict; # Create a new mail object my $msg = new Mail::Send; # Address it $msg->to('[EMAIL PROTECTED]'); $msg->subject('test of Mail::Send'); # create a file handle my $fh = $msg->open; print $fh "Just a test - please ignore"; # send it $fh->close; ---------- So, where am I going wrong and is there a better way to send mail using MacPerl? Thanks, Elton =========================================================================== NOVA 505 W. Olive Ave. Suite 550 Elton Hughes (Information Technology) Sunnyvale CA 94086 Phone: 408-730-7235 Fax: 408-730-7643 ---------------------------------------------------------------------------