Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: sending email

by Carl-Joseph (Scribe)
on Oct 13, 2000 at 08:45 UTC ( [id://36558]=note: print w/replies, xml ) Need Help??


in reply to sending email

If you have Microsoft Outlook installed, you can use it to send mail from Perl.

# # Uses COM Automation to send mail from Perl. # # # Use the OLE module provided with the # ActiveState Perl distribution. # use OLE; use Win32::OLE::Const ( 'Microsoft Outlook' ); # # Create the application object. This starts Outlook, if # it isn't already running. # $application = CreateObject OLE 'Outlook.Application' || die $!; # # Create a new item to send. # $myitem = $application->CreateItem( olMailItem ); # # Add recipients using the Recipients->Add method # $myitem->Recipients->Add( "CzJz\@Hotmail.com" ); # # Set the values for the Subject and Body properties # $myitem->{ 'Subject' } = "Message from Perl" ; $myitem->{ 'Body' } = "This message was sent from Perl.\n-- Carl-Josep +h" ; # # Send it using the Send method. # $myitem->Send;

Carl-Joseph

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://36558]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-23 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found