in reply to email on WIN32
without the SMTP server locally, you have to specify which server you want use via a new object Win32::OLE->new ("CDO.Configuration") ;, and things go unfriendly ..use Win32::OLE qw(with); my $Message = Win32::OLE->new("CDO.Message"); $Message->{From}="a\@b.c"; $Message->{To}="b\@b.c"; $Message->{Bcc}="c\@b.c"; $Message->{Subject}="test subj"; $Message->{TextBody}="ahahahahahah\n\ndjhdjkfhdasjkfh"; $Message->Send()||die $Win32::OLE::LastError,$^E;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: email on WIN32
by fionbarr (Friar) on Oct 27, 2009 at 12:48 UTC |