in reply to Getting Filehandle from Mail::Mailer
Please thank everyone for their help and I hope someone has an insight to it.sub Write_Data{ format STDOUT = @<<<<<<<<<<@<<<<<<<<<<<@<<<<<<<<<<<<@<<<<<<<<<<<<<<<<<<<<<< shift(@printrows), shift(@printrows), shift(@printrows), shift(@printrows) . my $To = 'dvmrgn@home.com'; my %mail_header = ('To', $To, 'From', 'webmaster@onlinerenter.com', 'Subject', 'Test of New Clients Report'); my $mailer = new Mail::Mailer 'smtp', Server=>'smtp.telusplanet.net'; $mailer->open(\%mail_header); my $ofh = select($mailer); $~ = "STDOUT"; write ; write ; $mailer->close; select($ofh); } # End of write_data
|
|---|