Here's an example of how to use Win32 OLE/COM automation to create and send an email message with Microsoft Outlook.
require 'win32ole' outlook = CreateObject('Outlook.Application') message = outlook.CreateItem(0) message.Subject = 'Subject line here' message.Body = 'This is the body of your message.' message.To = 'ted.williams@redsox.com' message.Attachments.Add('c:\my_folder\my_file.txt', 1) message.Send
Further details can be found here.