dorpus has asked for the wisdom of the Perl Monks concerning the following question:
Can't call method "Send" on unblessed reference at C:\testmail.pl line + 14. The script is: #!/usr/local/bin/perl use Win32::OLE; # Send report by mail $outlook = new Win32::OLE('Outlook.Application'); $outlook->{Visible}=1; $mailitem = $outlook->CreateItem(olMailItem); $mailitem->{To} = "hrobertson\@deltagen.com"; $mailitem->{Subject} = "Copy report for $d"; open(INFILE,"copylog.txt"); $mailitem->{Body} .= <INFILE>; close(INFILE); $mailitem->Send(); ---- What do I need to do differently??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trouble sending mail
by Adam (Vicar) on Mar 22, 2001 at 05:34 UTC | |
|
Re: trouble sending mail
by dws (Chancellor) on Mar 22, 2001 at 05:32 UTC | |
|
Re: trouble sending mail
by dorpus (Novice) on Mar 23, 2001 at 03:59 UTC | |
by dws (Chancellor) on Mar 23, 2001 at 04:06 UTC | |
|
Re: trouble sending mail
by Beatnik (Parson) on Mar 23, 2001 at 05:00 UTC |