in reply to trouble sending mail
Thanks#!/usr/local/bin/perl use strict; use Win32::OLE::Const; my %olConst = %{ Win32::OLE::Const->Load( "Microsoft Outlook" ) }; # Send report by mail my $outlook = new Win32::OLE('Outlook.Application'); my $mailitem = $outlook->CreateItem($olConst{olMailItem}) or die "coul +d not create item."; $mailitem->{To} = "spam@spam.com"; $mailitem->{Subject} = "Copy report"; $mailitem->{Body} .= "abc"; $mailitem->Send();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: trouble sending mail
by dws (Chancellor) on Mar 23, 2001 at 04:06 UTC |