[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

regarding MS Office properties

Pranjal Jain

5/3/2008 11:18:00 AM

Hi all
If we want to open the outlook & write in it , we use the command

outlook = WIN32OLE.new('Outlook.Application').

message = outlook.CreateItem(0)

message.Subject = 'Double-Header Today'
message.Body = 'This is the message body.'
message.To = 'xxxx.yyyy@gmail.com'
message.Recipients.Add 'abc.Pal@xyz.com'
message.Recipients.Add 'Parveen.123@xyz.com'
#The second argument, 1, indicates that this is an attached file, rather
than a #link to the original file.
message.Attachments.Add('c:\Update Ruby gems.txt', 1)
message.Send


But in case if we want to write the message in already opened Outlook
mail, wht should we do :(

I am hvng no clue regarding it. please suggest.

thnks in advance
--
Posted via http://www.ruby-....